summaryrefslogtreecommitdiffstats
path: root/roles/httpd/reverseproxy
diff options
context:
space:
mode:
authorPatrick Uiterwijk <puiterwijk@redhat.com>2016-01-15 09:34:32 +0000
committerPatrick Uiterwijk <puiterwijk@redhat.com>2016-01-15 09:34:32 +0000
commit62a0372a385322d3ff2f0172276d27ecccd03479 (patch)
tree8498f843c0a112d55c3275e90e29dee85eaa974d /roles/httpd/reverseproxy
parentaba9826291b8669fce755df5107a7dca64f9cb50 (diff)
downloadansible-62a0372a385322d3ff2f0172276d27ecccd03479.tar.gz
ansible-62a0372a385322d3ff2f0172276d27ecccd03479.tar.xz
ansible-62a0372a385322d3ff2f0172276d27ecccd03479.zip
Add the de-facto x-forwarded-proto
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'roles/httpd/reverseproxy')
-rw-r--r--roles/httpd/reverseproxy/templates/reversepassproxy.conf1
1 files changed, 1 insertions, 0 deletions
diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.conf
index 5a9eb944a..4304709d4 100644
--- a/roles/httpd/reverseproxy/templates/reversepassproxy.conf
+++ b/roles/httpd/reverseproxy/templates/reversepassproxy.conf
@@ -6,6 +6,7 @@ RewriteRule ^{{remotepath}}$ %{REQUEST_URI}/ [R=301]
{% if header_scheme %}
RequestHeader set X-Forwarded-Scheme https early
RequestHeader set X-Scheme https early
+RequestHeader set X-Forwarded-Proto https early
{% endif %}
ProxyPass {{ localpath }} {{ proxyurl }}{{remotepath}}