From b728f335ad98f2550f6b996caba4a4d9e5b4c5a5 Mon Sep 17 00:00:00 2001 From: Ruhanga <41738040+Ruhanga@users.noreply.github.com> Date: Thu, 11 Jan 2024 15:23:31 +0300 Subject: [PATCH] OZ-457: Fix proxy_pass SENAITE rule for Nginx. (#69) --- proxy/default.conf.template | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/proxy/default.conf.template b/proxy/default.conf.template index ecaa7ea..1e1e681 100644 --- a/proxy/default.conf.template +++ b/proxy/default.conf.template @@ -158,8 +158,7 @@ server { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; rewrite ^(.*)$ /VirtualHostBase/https/$host/senaite/VirtualHostRoot/$1 break; - set $senaite senaite:8080; - proxy_pass http://$senaite; + proxy_pass http://senaite:8080; } } @@ -170,7 +169,5 @@ server { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; rewrite ^(.*)$ /VirtualHostBase/http/$host/senaite/VirtualHostRoot/$1 break; - set $senaite senaite:8080; - proxy_pass http://$senaite; + proxy_pass http://senaite:8080; } -}