Some apps need to set this header.

This commit is contained in:
Ralph Bean 2014-12-08 17:37:48 +00:00
parent bfd7cb3b5f
commit 5ac9136973
3 changed files with 8 additions and 3 deletions

View file

@ -61,12 +61,12 @@
website: taskotron.stg.fedoraproject.org
destname: taskotron
# Talk directly to the app server, not haproxy
proxyurl: http://taskotron-stg01.qa.fedoraproject.org/
proxyurl: http://taskotron-stg01.qa.fedoraproject.org
- role: httpd/reverseproxy
website: meetbot.fedoraproject.org
destname: meetbot
localpath: /meetbot
remotepath: /meetbot/
# Talk directly to the app server, not haproxy
proxyurl: http://value01
@ -82,6 +82,7 @@
destname: nuancier
localpath: /nuancier
remotepath: /nuancier
header_scheme: true
proxyurl: http://localhost:10035
- role: httpd/reverseproxy
@ -89,6 +90,7 @@
destname: github2fedmsg
localpath: /github2fedmsg
remotepath: /github2fedmsg
header_scheme: true
proxyurl: http://localhost:10037
- role: httpd/reverseproxy

View file

@ -2,6 +2,8 @@
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}}

View file

@ -1,4 +1,5 @@
remotepath: /
localpath: /
rewrite: false
destname: reversepassproxy
rewrite: false
header_scheme: false