diff --git a/nginx.conf b/nginx.conf index 4b00bec..7805bc9 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,11 +1,12 @@ server { listen $PORT0; + port_in_redirect off; + location $BASE_HREF/ { alias /etc/nginx/html/; index index.html index.htm; - try_files $uri$args $uri$args/ $uri $BASE_HREF/index.html; - rewrite ^([^.]*[^/])$ $1/ permanent; + try_files $uri$args $uri $BASE_HREF/index.html; } }