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
cbc55d6959
commit
608d35f56f
1 changed files with 2 additions and 2 deletions
|
@ -32,13 +32,13 @@ fi
|
|||
# Antworte 404 Not Found wenn Datei nicht existiert
|
||||
if [ ! -e "$FILE" ]; then
|
||||
STATUS='HTTP/1.0 404 Not Found'
|
||||
CONTENTTYPE='text/plain'
|
||||
CONTENTTYPE='text/html'
|
||||
FILE="$ERROR404"
|
||||
fi
|
||||
|
||||
# Antworte 403 Forbidden wenn Datei nicht lesbar ist
|
||||
if [ ! -r "$FILE" ]; then
|
||||
STATUS='HTTP/1.0 403 Forbidden'
|
||||
CONTENTTYPE='text/plain'
|
||||
CONTENTTYPE='text/html'
|
||||
FILE="$ERROR403"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue