1
0
Fork 0
mirror of https://gitlab.com/niansa/simpsh-httpd.git synced 2025-03-06 20:53:36 +01:00

Update urlcheck.sh

This commit is contained in:
niansa 2019-05-01 10:56:33 +00:00
parent 1443f73e1c
commit 543fafb364

View file

@ -29,14 +29,14 @@ if [ -f "${FILE}index.php" ]; then
FILE="${FILE}index.php"
fi
# Answer 404 if the file doesn't exist
# Respond 404 if the file doesn't exist
if [ ! -e "$FILE" ]; then
STATUS='HTTP/1.0 404 Not Found'
CONTENTTYPE='text/html'
FILE="$ERROR404"
fi
# Answer 403 if the file isn't readable
# Respond 403 if the file isn't readable
if [ ! -r "$FILE" ]; then
STATUS='HTTP/1.0 403 Forbidden'
CONTENTTYPE='text/html'