summaryrefslogtreecommitdiffstats
path: root/roles/httpd/reverseproxy
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2014-12-08 19:45:27 +0000
committerRalph Bean <rbean@redhat.com>2014-12-08 19:45:32 +0000
commit5c29359f1d2353e2c4b1f6c74e2de6f7988fdc8a (patch)
tree7bfe91c2a61f81dcbf62a9b71ea13d19c9c81460 /roles/httpd/reverseproxy
parent0bc817d06616bd59e8bdf8269bc0c3c6710740f8 (diff)
downloadansible-5c29359f1d2353e2c4b1f6c74e2de6f7988fdc8a.tar.gz
ansible-5c29359f1d2353e2c4b1f6c74e2de6f7988fdc8a.tar.xz
ansible-5c29359f1d2353e2c4b1f6c74e2de6f7988fdc8a.zip
Special-case fas (reverseproxy).
Diffstat (limited to 'roles/httpd/reverseproxy')
-rw-r--r--roles/httpd/reverseproxy/templates/reversepassproxy.fas.conf12
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.fas.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.fas.conf
new file mode 100644
index 000000000..9d7d0cebe
--- /dev/null
+++ b/roles/httpd/reverseproxy/templates/reversepassproxy.fas.conf
@@ -0,0 +1,12 @@
+# pass ca requests on needed for CRL
+ProxyPass /ca http://fas1/ca/
+ProxyPassReverse /ca http://fas1/ca/
+
+# fas1 is the only place for gencert right now
+RewriteEngine On
+RewriteRule /accounts/user/dogencert http://fas1/accounts/user/dogencert [P,L]
+
+ProxyPassReverse /accounts/user/dogencert http://fas1/
+
+ProxyPass {{localpath}} {{proxyurl}}/{{remotepath}}
+ProxyPassReverse {{localpath}} {{proxyurl}}/{{remotepath}}