Add option to set ProxyPreserveHost

https://httpd.apache.org/docs/current/en/mod/mod_proxy.html#proxypreservehost
This commit is contained in:
Stefan Haun 2022-11-12 01:21:24 +01:00
parent ce770f9467
commit ad9dfbffd8

View file

@ -44,6 +44,7 @@
ProxyPass / http://{{ backend_host | default("localhost") }}:{{proxy_port}}/ nocanon
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
RequestHeader set "X-Forwarded-SSL" expr=%{HTTPS}
ProxyPreserveHost {{ proxy_preserve_host | default("Off") }}
<ifmodule mod_rewrite.c>
# see documentation of wstunnel: This allwos generic websocket passthrough