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