summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nginx/nginx.conf6
1 files changed, 1 insertions, 5 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index 187d1011..e1a8fde2 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -133,10 +133,6 @@ http {
gzip_static on;
brotli_static on;
- if ($request_uri ~ ^/(.*)\.html$) {
- return 301 /$1;
- }
-
if ($request_uri ~ (.*)//(.*)) {
return 301 $1/$2;
}
@@ -293,7 +289,7 @@ http {
add_header Cache-Control "public, max-age=1800";
}
- location ~ "\.(br|gz)$" {
+ location ~ "\.(br|gz|html)$" {
internal;
}