Add 404 error page to nginx config
This commit is contained in:
parent
2396106339
commit
379ef48078
@ -1,11 +1,16 @@
|
|||||||
|
error_page 404 error/404.html;
|
||||||
|
location = error/404.html {
|
||||||
|
internal;
|
||||||
|
}
|
||||||
|
|
||||||
location = robots.txt {
|
location = robots.txt {
|
||||||
allow all;
|
allow all;
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location = explore/ {
|
location = explore/ {
|
||||||
index index.html
|
index index.html
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* explore/(.*)/ {
|
location ~* explore/(.*)/ {
|
||||||
|
Loading…
Reference in New Issue
Block a user