diff options
| -rw-r--r-- | nginx/default.conf | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nginx/default.conf b/nginx/default.conf index 97d7f4c..079b303 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -5,8 +5,11 @@ server { root /usr/share/nginx/html; index index.html; + absolute_redirect off; + port_in_redirect off; location / { - try_files $uri $uri/ /index.html; + # Serve directory index files without triggering a 301 slash redirect. + try_files $uri $uri/index.html /index.html; } } |
