summaryrefslogtreecommitdiffstats
path: root/roles/httpd/reverseproxy
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2014-12-08 17:37:48 +0000
committerRalph Bean <rbean@redhat.com>2014-12-08 17:37:48 +0000
commit5ac91369730715591e2ea6e52fea1e080e47a3ef (patch)
treefeaef768e3ade3a0b90131290644e62dc1dbf41e /roles/httpd/reverseproxy
parentbfd7cb3b5ff36bba31a4bc7c2c6e4aa6a24be89b (diff)
downloadansible-5ac91369730715591e2ea6e52fea1e080e47a3ef.tar.gz
ansible-5ac91369730715591e2ea6e52fea1e080e47a3ef.tar.xz
ansible-5ac91369730715591e2ea6e52fea1e080e47a3ef.zip
Some apps need to set this header.
Diffstat (limited to 'roles/httpd/reverseproxy')
-rw-r--r--roles/httpd/reverseproxy/templates/reversepassproxy.conf2
-rw-r--r--roles/httpd/reverseproxy/vars/main.yml3
2 files changed, 4 insertions, 1 deletions
diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.conf
index c79ddf9ea..6fad6b3bc 100644
--- a/roles/httpd/reverseproxy/templates/reversepassproxy.conf
+++ b/roles/httpd/reverseproxy/templates/reversepassproxy.conf
@@ -3,5 +3,7 @@ RewriteEngine On
RewriteRule ^{{remotepath}}$ %{REQUEST_URI}/ [R=301]
{% endif %}
+{% if header_scheme %}RequestHeader set X-Forwarded-Scheme https early
+{% endif %}
ProxyPass {{ localpath }} {{ proxyurl }}{{remotepath}}
ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}}
diff --git a/roles/httpd/reverseproxy/vars/main.yml b/roles/httpd/reverseproxy/vars/main.yml
index 17df0b487..61ee936ff 100644
--- a/roles/httpd/reverseproxy/vars/main.yml
+++ b/roles/httpd/reverseproxy/vars/main.yml
@@ -1,4 +1,5 @@
remotepath: /
localpath: /
-rewrite: false
destname: reversepassproxy
+rewrite: false
+header_scheme: false