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:
parent
1443f73e1c
commit
543fafb364
1 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue