diff --git a/host-pottwal.yml b/host-pottwal.yml index ae833e0..f433410 100644 --- a/host-pottwal.yml +++ b/host-pottwal.yml @@ -414,5 +414,6 @@ vars: site_name: "{{ grafana_domain_name }}" proxy_port: "{{ grafana_host_port }}" + proxy_preserve_host: "On" handlers: 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