summaryrefslogtreecommitdiff
path: root/nginx
diff options
context:
space:
mode:
Diffstat (limited to 'nginx')
-rw-r--r--nginx/default.conf5
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;
}
}