From 7435d150f5ed9c8f5dc650b9880685c251cab5f5 Mon Sep 17 00:00:00 2001 From: Rafi59 Date: Thu, 7 Sep 2017 21:13:29 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 29b705c..e6ead3a 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,6 +1,6 @@ -location PATHTOCHANGE/ { +location / { rewrite ^PATHTOCHANGE$ PATHTOCHANGE/ permanent; - proxy_pass http://localhost:YUNOPORT/; + proxy_pass http://localhost:$port/; proxy_set_header Host $host; proxy_buffering off; include conf.d/yunohost_panel.conf.inc;