From cb4ee4bdad02589919ce0a4b87c0817a64a29dfb Mon Sep 17 00:00:00 2001 From: frju365 Date: Wed, 20 May 2020 09:57:30 +0200 Subject: [PATCH] Nginx modification --- conf/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index a45336b..7a0a201 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,4 +1,6 @@ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; +rewrite __PATH__/(.*) /$1 break; + location __PATH__/ { proxy_set_header Host $http_host; @@ -7,8 +9,6 @@ location __PATH__/ { proxy_set_header X-Forwarded-Proto $scheme; proxy_pass http://127.0.0.1:__PORT__; - rewrite __PATH__/(.*) /$1 break; - # Path to source alias __FINALPATH__/ ;