diff --git a/conf/nginx.conf b/conf/nginx.conf index 6e8d3c9..d2bfccb 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,11 +1,6 @@ -location PATHTOCHANGE { - if ($scheme = http) { - rewrite ^ https://$server_name$request_uri? permanent; - } - rewrite PATHTOCHANGE/(.*) /$1 break; +location PATHTOCHANGE/ { rewrite ^PATHTOCHANGE$ PATHTOCHANGE/ permanent; proxy_pass http://localhost:9001/; - proxy_redirect / PATHTOCHANGE/; proxy_set_header Host $host; proxy_buffering off; }