Улучшен конфиг для 404
This commit is contained in:
parent
98c519a17f
commit
1083d7d073
@ -26,14 +26,14 @@ server {
|
|||||||
root {{ homepage_dir }}/current;
|
root {{ homepage_dir }}/current;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
error_page 404 = @notfound;
|
error_page 404 =404 @notfound;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @notfound {
|
location @notfound {
|
||||||
try_files /404/index.html =409;
|
try_files 404.html /404/index.html =404;
|
||||||
internal;
|
internal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user