mirror of
https://gitlab.com/niansa/simpsh-httpd.git
synced 2025-03-06 20:53:36 +01:00
WEBSITE setting no longer required
This commit is contained in:
parent
f4b00e82ab
commit
482feb559a
2 changed files with 1 additions and 4 deletions
|
@ -15,9 +15,6 @@ DEFAULTCONTENTTYPE="text/html"
|
|||
# This port will used for listening
|
||||
PORT=8888
|
||||
|
||||
# This is the URL of the website (Example: "http://example.org:$PORT")
|
||||
WEBSITE="http://localhost:$PORT"
|
||||
|
||||
# Should PHP be enabled? You need to install php-cli package to use it. May be false or true
|
||||
ENABLE_PHP="false"
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ fi
|
|||
if [ -d "$FILE" ]; then
|
||||
if [[ "$URL" != */ ]]; then
|
||||
STATUS='HTTP/1.0 302 Moved permanently
|
||||
Location: '"${WEBSITE}${URL}"'/'
|
||||
Location: '"$URL"'/'
|
||||
CONTENTTYPE="$DEFAULTCONTENTTYPE"
|
||||
. ./httpheaders.sh
|
||||
DONE=true
|
||||
|
|
Loading…
Add table
Reference in a new issue