From 6cd5d9353c674a61369dd50550605eef72f56a8a Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 6 Apr 2024 16:45:41 -0400 Subject: [PATCH] handle leading double slash for redirect --- nginx/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 96a83209..617d7e2e 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -220,7 +220,7 @@ http { gzip_static on; brotli_static on; - if ($request_uri ~ ^[^?]+//) { + if ($request_uri ~ ^[^?]*//) { rewrite ^(.*)$ $1 permanent; }