From d0b7849cc76e50768907b8a0fd2b9441524bc541 Mon Sep 17 00:00:00 2001 From: Nicholas C <55490546+LlamaDuckGoose@users.noreply.github.com> Date: Fri, 27 Oct 2023 07:11:49 +1100 Subject: [PATCH] Fix apache proxy header forwarder (#1903) * fix: header forwarding when using apache proxy * feat: match nginx proxy settings * feat: removed redundant setting --- scripts/site-types/apache-proxy.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/site-types/apache-proxy.sh b/scripts/site-types/apache-proxy.sh index 81fb0d97a..c4016c53e 100644 --- a/scripts/site-types/apache-proxy.sh +++ b/scripts/site-types/apache-proxy.sh @@ -59,6 +59,11 @@ block=" ServerName $1 ServerAlias www.$1 + ProxyPreserveHost On + RequestHeader set X-Real-IP %{REMOTE_ADDR}s + RequestHeader set Upgrade websocket + RequestHeader set Connection Upgrade + $paramsTXT $headersTXT @@ -77,7 +82,13 @@ blockssl=" ServerName $1 ServerAlias www.$1 + ProxyPreserveHost On + RequestHeader set X-Real-IP %{REMOTE_ADDR}s + RequestHeader set Upgrade websocket + RequestHeader set Connection Upgrade + $paramsTXT + $headersTXT SSLEngine on