From ad9dfbffd83352d9fe88b1ea7ab53da396896b41 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Sat, 12 Nov 2022 01:21:24 +0100 Subject: [PATCH] :sparkles: Add option to set ProxyPreserveHost https://httpd.apache.org/docs/current/en/mod/mod_proxy.html#proxypreservehost --- .../setup_http_site_proxy/templates/apache-docker-proxy-site.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/setup_http_site_proxy/templates/apache-docker-proxy-site.j2 b/roles/setup_http_site_proxy/templates/apache-docker-proxy-site.j2 index a57db73..a3adea8 100644 --- a/roles/setup_http_site_proxy/templates/apache-docker-proxy-site.j2 +++ b/roles/setup_http_site_proxy/templates/apache-docker-proxy-site.j2 @@ -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") }} # see documentation of wstunnel: This allwos generic websocket passthrough