Improve redirection

This commit is contained in:
Josué Tille 2017-12-17 16:21:14 +01:00
parent c056f482d0
commit db0cc79e4b

View file

@ -1,7 +1,5 @@
location PATHTOCHANGE1 { location PATHTOCHANGE1 {
if ($scheme = 'http' ) { proxy_redirect http:// https://;
return 301 https://$host$request_uri;
}
proxy_pass http://127.0.0.1:SEAHUB_PORT; proxy_pass http://127.0.0.1:SEAHUB_PORT;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;