From fcfe012f6dda67fca9d6d2664695266edcaf0399 Mon Sep 17 00:00:00 2001 From: Aaron Louie Date: Mon, 25 May 2020 11:51:57 -0400 Subject: [PATCH] Hacks 404 to force routing to index.html --- nginx.conf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nginx.conf b/nginx.conf index dba1d24..da37edf 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,13 +1,14 @@ server { listen $PORT0; - root /usr/share/nginx/html; - index index.html index.htm; location $BASE_HREF/ { - alias /usr/share/nginx/html; + root /usr/share/nginx/html; + index index.html index.htm; try_files $uri$args $uri$args/ $BASE_HREF/index.html =404; } + error_page 404 $BASE_HREF/index.html + include /etc/nginx/extra-conf.d/*.conf; }