Add 404 error page to nginx config

This commit is contained in:
Ethan Paul 2021-04-24 22:45:02 -04:00
parent 2396106339
commit 379ef48078
No known key found for this signature in database
GPG Key ID: D0E2CBF1245E92BF
1 changed files with 9 additions and 4 deletions

View File

@ -1,11 +1,16 @@
error_page 404 error/404.html;
location = error/404.html {
internal;
}
location = robots.txt {
allow all;
log_not_found off;
access_log off;
allow all;
log_not_found off;
access_log off;
}
location = explore/ {
index index.html
index index.html
}
location ~* explore/(.*)/ {