Add root location

This commit is contained in:
Aaron Louie 2020-05-25 08:39:50 -04:00
parent 8d7673f7d4
commit f88e074d6e

View File

@ -1,10 +1,15 @@
server { server {
listen $PORT0; listen $PORT0;
location / {
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html index.htm; index index.html index.htm;
try_files $uri$args $uri$args/ /index.html =404;
}
location $BASE_HREF/ { location $BASE_HREF/ {
alias /usr/share/nginx/html; alias /usr/share/nginx/html;
index index.html index.htm;
try_files $uri$args $uri$args/ $BASE_HREF/index.html =404; try_files $uri$args $uri$args/ $BASE_HREF/index.html =404;
} }