diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2021-06-02 20:57:01 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-06-02 20:57:01 -0400 |
| commit | 5262ad4ee7d3f78ba552e6daca1c0b694afcaf27 (patch) | |
| tree | 078cfac1dae92c91e2b5ff8d09fd608450a0b855 /nginx | |
| parent | 81fa2a6f23c11eab694c5b8a2de6da23d0945af2 (diff) | |
make index files into an implementation detail
Diffstat (limited to 'nginx')
| -rw-r--r-- | nginx/nginx.conf | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf index e1a8fde2..3ba8c8fd 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -137,10 +137,6 @@ http { return 301 $1/$2; } - if ($request_uri ~ ^(.*)/index$) { - return 301 $1/; - } - # https://www.twipu.com/GrapheneOS doesn't handle links with fragments properly if ($request_uri ~ "^/(.*)%3Ca%20href=$") { return 301 /$1; @@ -289,7 +285,7 @@ http { add_header Cache-Control "public, max-age=1800"; } - location ~ "\.(br|gz|html)$" { + location ~ "(/index|\.(br|gz|html))$" { internal; } |
