From 401a11df36e1c31ff6bdc888665134b2c21f8ad1 Mon Sep 17 00:00:00 2001 From: abeudin Date: Fri, 10 Jan 2014 15:19:17 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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; }