Add root location
This commit is contained in:
parent
8d7673f7d4
commit
f88e074d6e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue