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 bed6c60 commit 1878beb
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 @@ -163,7 +163,7 @@ http {

include snippets/security-headers.conf;

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

Expand Down

0 comments on commit 1878beb

Please sign in to comment.