Merge pull request 'apache-ProxyPreserveHost' (!111) from apache-ProxyPreserveHost into master
Reviewed-on: https://gitea.n39.eu/Netz39_Admin/netz39-infra-ansible/pulls/111 Reviewed-by: dkdent <dkdent@netz39.de>
This commit is contained in:
commit
d89b5eea04
2 changed files with 2 additions and 0 deletions
|
@ -414,5 +414,6 @@
|
||||||
vars:
|
vars:
|
||||||
site_name: "{{ grafana_domain_name }}"
|
site_name: "{{ grafana_domain_name }}"
|
||||||
proxy_port: "{{ grafana_host_port }}"
|
proxy_port: "{{ grafana_host_port }}"
|
||||||
|
proxy_preserve_host: "On"
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
ProxyPass / http://{{ backend_host | default("localhost") }}:{{proxy_port}}/ nocanon
|
ProxyPass / http://{{ backend_host | default("localhost") }}:{{proxy_port}}/ nocanon
|
||||||
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
|
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
|
||||||
RequestHeader set "X-Forwarded-SSL" expr=%{HTTPS}
|
RequestHeader set "X-Forwarded-SSL" expr=%{HTTPS}
|
||||||
|
ProxyPreserveHost {{ proxy_preserve_host | default("Off") }}
|
||||||
|
|
||||||
<ifmodule mod_rewrite.c>
|
<ifmodule mod_rewrite.c>
|
||||||
# see documentation of wstunnel: This allwos generic websocket passthrough
|
# see documentation of wstunnel: This allwos generic websocket passthrough
|
||||||
|
|
Loading…
Reference in a new issue