summaryrefslogtreecommitdiff
path: root/nginx
diff options
context:
space:
mode:
Diffstat (limited to 'nginx')
-rw-r--r--nginx/nginx.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index 2823e65e..694ac76f 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -116,8 +116,8 @@ http {
return 301 /$1;
}
- if ($request_uri ~ "//") {
- return 301 $uri$is_args$args;
+ if ($request_uri ~ (.*)//(.*)) {
+ return 301 $1/$2;
}
location = /security.txt {