Hacks 404 to force routing to index.html

This commit is contained in:
Aaron Louie 2020-05-25 11:51:57 -04:00
parent 051db5ab99
commit fcfe012f6d

View File

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