Add root location

This commit is contained in:
Aaron Louie 2020-05-25 08:39:50 -04:00
parent 8d7673f7d4
commit f88e074d6e
1 changed files with 7 additions and 2 deletions

View File

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