From 55eb2113c330ea396be1e8718e1120d084fade11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Tue, 30 Jun 2020 11:35:10 +0200 Subject: [PATCH] Fix internal redirection --- conf/nginx.conf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 7530d83..56a3fde 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -7,9 +7,8 @@ location __PATH__/ { } # Internally redirect /wetty/ to /wetty because the app wants this - location =__PATH__/ { - rewrite ^__PATH__/$ __PATH__; - } + # break tells nginx to continue processing the location block + rewrite ^__PATH__/$ __PATH__ break; proxy_pass http://localhost:__PORT__; proxy_http_version 1.1;