Skip to content

Commit

Permalink
handle leading double slash for redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Apr 6, 2024
1 parent 3fefd6b commit 3f2240e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ http {
gzip_static on;
brotli_static on;

if ($request_uri ~ ^[^?]+//) {
if ($request_uri ~ ^[^?]*//) {
rewrite ^(.*)$ $1 permanent;
}

Expand Down

0 comments on commit 3f2240e

Please sign in to comment.