Correctly use 404 definition
This commit is contained in:
parent
6eb85cc932
commit
c516350eb2
1 changed files with 5 additions and 1 deletions
|
@ -23,7 +23,11 @@ server {
|
|||
index index.html;
|
||||
try_files $uri $uri/ =404;
|
||||
|
||||
error_page 403 =404 /404.html;
|
||||
# Show 403 as 404
|
||||
error_page 403 =404;
|
||||
|
||||
# Custom 404
|
||||
error_page 404 /404.html;
|
||||
|
||||
# Kick malicious clients sooner
|
||||
client_header_timeout 10s;
|
||||
|
|
Loading…
Reference in a new issue