1
0
Fork 0
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:
niansa 2020-08-04 14:03:07 +02:00
parent f4b00e82ab
commit 482feb559a
2 changed files with 1 additions and 4 deletions

View file

@ -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"

View file

@ -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