From 3e4e814bbb4636d335d43cc73886f78a8ba46c8d Mon Sep 17 00:00:00 2001 From: Alexis Gavoty Date: Sun, 20 Jul 2014 14:08:59 +0200 Subject: [PATCH] [fix] Subpath install --- conf/nginx.conf | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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; }