Skip to content

Commit

Permalink
Fix apache proxy header forwarder (#1903)
Browse files Browse the repository at this point in the history
* fix: header forwarding when using apache proxy

* feat: match nginx proxy settings

* feat: removed redundant setting
  • Loading branch information
ALameLlama authored Oct 26, 2023
1 parent c59b8e4 commit d0b7849
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/site-types/apache-proxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ block="<VirtualHost *:$3>
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
Expand All @@ -77,7 +82,13 @@ blockssl="<IfModule mod_ssl.c>
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
Expand Down

0 comments on commit d0b7849

Please sign in to comment.