From 379ef48078159155565c71f857c9befe9f14f8c4 Mon Sep 17 00:00:00 2001 From: Ethan Paul <24588726+enpaul@users.noreply.github.com> Date: Sat, 24 Apr 2021 22:45:02 -0400 Subject: [PATCH] Add 404 error page to nginx config --- templates/nginx.conf.d.j2 | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/templates/nginx.conf.d.j2 b/templates/nginx.conf.d.j2 index 2308619..44cf214 100644 --- a/templates/nginx.conf.d.j2 +++ b/templates/nginx.conf.d.j2 @@ -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/(.*)/ {