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