summaryrefslogtreecommitdiffstats
path: root/roles/httpd/reverseproxy
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2014-12-08 20:28:50 +0000
committerRalph Bean <rbean@redhat.com>2014-12-08 20:28:50 +0000
commitecbc3764f80ec3e75e46b7f20dfc037fee0b0e2c (patch)
tree424772a7d96a9bc3d9d6bf0924c225295f3a9580 /roles/httpd/reverseproxy
parent410876543a1f74d75cbbad64effe68e1cdde69ff (diff)
downloadansible-ecbc3764f80ec3e75e46b7f20dfc037fee0b0e2c.tar.gz
ansible-ecbc3764f80ec3e75e46b7f20dfc037fee0b0e2c.tar.xz
ansible-ecbc3764f80ec3e75e46b7f20dfc037fee0b0e2c.zip
Special-case mirrormanager main app (reverseproxy).
Diffstat (limited to 'roles/httpd/reverseproxy')
-rw-r--r--roles/httpd/reverseproxy/templates/reversepassproxy.mirrormanager.conf11
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.mirrormanager.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.mirrormanager.conf
new file mode 100644
index 000000000..44987a119
--- /dev/null
+++ b/roles/httpd/reverseproxy/templates/reversepassproxy.mirrormanager.conf
@@ -0,0 +1,11 @@
+<Location {{localpath}}>
+RequestHeader set CP-Location {{localpath}}
+SetEnv force-proxy-request-1.0 1
+SetEnv proxy-nokeepalive 1
+</Location>
+
+ProxyPass {{localpath}}/crawler http://bapp02/mirrormanager/crawler
+ProxyPassReverse {{localpath}}/crawler http://bapp02/mirrormanager/crawler
+
+ProxyPass {{localpath}} {{proxyurl}}{{remotepath}}
+ProxyPassReverse {{localpath}} {{proxyurl}}{{remotepath}}