summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nginx/nginx.conf4
1 files changed, 4 insertions, 0 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index 944ef6ad..a2ec0406 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -113,6 +113,10 @@ http {
return 301 /$1;
}
+ if ($request_uri ~ "//") {
+ return 301 $uri$is_args$args;
+ }
+
location = /security.txt {
return 301 /.well-known/security.txt;
}