1
0

Улучшен конфиг для 404

This commit is contained in:
Anton Vakhrushev 2018-09-14 08:09:00 +03:00
parent 98c519a17f
commit 1083d7d073

View File

@ -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;
} }
} }