diff --git a/conf/nginx.conf b/conf/nginx.conf index f1fe7fb..c65b7b3 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,7 +1,5 @@ location PATHTOCHANGE1 { - if ($scheme = 'http' ) { - return 301 https://$host$request_uri; - } + proxy_redirect http:// https://; proxy_pass http://127.0.0.1:SEAHUB_PORT; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr;