forked from exozyme/nginx
Finally get ta180m 404 to work without redirect
This commit is contained in:
parent
86bea2bf06
commit
0a138d08fc
1 changed files with 5 additions and 1 deletions
|
@ -9,7 +9,11 @@ server {
|
|||
root /srv/http/ta180m/public;
|
||||
index index.html;
|
||||
|
||||
error_page 404 404.html;
|
||||
error_page 404 /404.html;
|
||||
location = /404.html {
|
||||
internal;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue