Skip to content

Commit

Permalink
Merge pull request #59 from freedomofpress/nginx-fixes
Browse files Browse the repository at this point in the history
Deal with // in URLs
  • Loading branch information
maeve-fpf authored Jul 7, 2021
2 parents 42a3f61 + aae0127 commit 7a5770a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +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;
default_type application/octet-stream;
rewrite ^/https-everywhere($|//+)(.*) /https-everywhere/$2 permanent;
}
}
}

0 comments on commit 7a5770a

Please sign in to comment.