diff --git a/conf/nginx.conf b/conf/nginx.conf index 42ef2a2..82580c8 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; } - proxy_pass http://localhost:9001; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection 'upgrade'; - proxy_set_header Host $host; - proxy_cache_bypass $http_upgrade; + rewrite /pad/(.*) /$1 break; + rewrite ^/pad$ /pad/ permanent; + proxy_pass http://localhost:9001/; + proxy_redirect / /pad/; + proxy_set_header Host $host; + proxy_buffering off; }