Skip to content

Commit

Permalink
Fix bug in Reverse Proxy Protocol parsing for Apache 2.2/2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
cytopia committed Dec 22, 2022
1 parent cb42b05 commit 79ce553
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions etc/templates/apache22.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ vhost_type:
rproxy: |
# Define the vhost to reverse proxy
ProxyRequests off
ProxyPass __LOCATION__ __PROXY_PROTO://__PROXY_ADDR__:__PROXY_PORT__
ProxyHTMLURLMap __PROXY_PROTO://__PROXY_ADDR__:__PROXY_PORT__ __LOCATION__
ProxyPass __LOCATION__ __PROXY_PROTO__://__PROXY_ADDR__:__PROXY_PORT__
ProxyHTMLURLMap __PROXY_PROTO__://__PROXY_ADDR__:__PROXY_PORT__ __LOCATION__
<location __LOCATION__>
ProxyPassReverse /
SetOutputFilter proxy-html
Expand Down
4 changes: 2 additions & 2 deletions etc/templates/apache24.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ vhost_type:
rproxy: |
# Define the vhost to reverse proxy
ProxyRequests off
ProxyPass __LOCATION__ __PROXY_PROTO://__PROXY_ADDR__:__PROXY_PORT__
ProxyHTMLURLMap __PROXY_PROTO://__PROXY_ADDR__:__PROXY_PORT__ __LOCATION__
ProxyPass __LOCATION__ __PROXY_PROTO__://__PROXY_ADDR__:__PROXY_PORT__
ProxyHTMLURLMap __PROXY_PROTO__://__PROXY_ADDR__:__PROXY_PORT__ __LOCATION__
<location __LOCATION__>
ProxyPassReverse /
SetOutputFilter proxy-html
Expand Down

0 comments on commit 79ce553

Please sign in to comment.