Skip to content

Commit

Permalink
Explicitly redirect requests with no or multiple trailing slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
maeve-fpf committed Jun 30, 2021
1 parent d380d4b commit aae0127
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ http {
uwsgi_temp_path /opt/nginx/run/uwsgi_temp;
scgi_temp_path /opt/nginx/run/scgi_temp;

merge_slashes off;

location / {
root /opt/nginx/root;
index index.html;
rewrite ^/https-everywhere($|//+)(.*) /https-everywhere/$2 permanent;
}
}
}

0 comments on commit aae0127

Please sign in to comment.