summaryrefslogtreecommitdiffstats
path: root/roles/httpd/reverseproxy
diff options
context:
space:
mode:
authorPatrick Uiterwijk <puiterwijk@redhat.com>2016-01-22 01:04:43 +0000
committerPatrick Uiterwijk <puiterwijk@redhat.com>2016-01-22 01:04:50 +0000
commitb69187c61c4353467b3880ca8ba51712a825a1c4 (patch)
tree8a28758a2d23e2412bf5231746b715f3da4c50c7 /roles/httpd/reverseproxy
parent29aa7fd1b70aa089378ce0d18953e17ec1bc0dd1 (diff)
downloadansible-b69187c61c4353467b3880ca8ba51712a825a1c4.tar.gz
ansible-b69187c61c4353467b3880ca8ba51712a825a1c4.tar.xz
ansible-b69187c61c4353467b3880ca8ba51712a825a1c4.zip
COPR API goes over SSL
Diffstat (limited to 'roles/httpd/reverseproxy')
-rw-r--r--roles/httpd/reverseproxy/templates/reversepassproxy.coprapi.conf15
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.coprapi.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.coprapi.conf
new file mode 100644
index 000000000..81546df23
--- /dev/null
+++ b/roles/httpd/reverseproxy/templates/reversepassproxy.coprapi.conf
@@ -0,0 +1,15 @@
+SSLProxyEngine on
+
+{% if rewrite %}
+RewriteEngine On
+RewriteRule ^{{remotepath}}$ %{REQUEST_URI}/ [R=301]
+
+{% endif %}
+{% 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}}
+ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}}