diff --git a/nginx.conf b/nginx.conf index dba1d24..ea80879 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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; }