summaryrefslogtreecommitdiffstats
path: root/roles/httpd
diff options
context:
space:
mode:
authorPatrick Uiterwijk <puiterwijk@redhat.com>2016-06-17 20:33:36 +0000
committerPatrick Uiterwijk <puiterwijk@redhat.com>2016-06-17 20:33:44 +0000
commit46629ba55c220e988c7c7464430b82dfadd0d33a (patch)
tree5cfc2a7d7adf77dea99e49b69dfabd63086d774d /roles/httpd
parenta094a4ce116e6587fd8a09e30523853e3d06813b (diff)
downloadansible-46629ba55c220e988c7c7464430b82dfadd0d33a.tar.gz
ansible-46629ba55c220e988c7c7464430b82dfadd0d33a.tar.xz
ansible-46629ba55c220e988c7c7464430b82dfadd0d33a.zip
Route all xmlrpc requests to mm-frontend-checkin01
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'roles/httpd')
-rw-r--r--roles/httpd/reverseproxy/templates/reversepassproxy.mirrormanager.conf5
-rw-r--r--roles/httpd/reverseproxy/templates/reversepassproxy.mirrormanager2.conf5
2 files changed, 10 insertions, 0 deletions
diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.mirrormanager.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.mirrormanager.conf
index 777da7fa1..d2c6dea4e 100644
--- a/roles/httpd/reverseproxy/templates/reversepassproxy.mirrormanager.conf
+++ b/roles/httpd/reverseproxy/templates/reversepassproxy.mirrormanager.conf
@@ -4,5 +4,10 @@ SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
</Location>
+{% if env != "staging" %}
+ProxyPass "/mirrormanager/xmlrpc" "http://mm-frontend-checkin01/mirrormanager/xmlrpc"
+ProxyPassReverse "/mirrormanager/xmlrpc" "http://mm-frontend-checkin01/mirrormanager/xmlrpc"
+{% endif %}
+
ProxyPass {{localpath}} {{proxyurl}}{{remotepath}}
ProxyPassReverse {{localpath}} {{proxyurl}}{{remotepath}}
diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.mirrormanager2.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.mirrormanager2.conf
index e2dc53db4..c805e3de3 100644
--- a/roles/httpd/reverseproxy/templates/reversepassproxy.mirrormanager2.conf
+++ b/roles/httpd/reverseproxy/templates/reversepassproxy.mirrormanager2.conf
@@ -4,5 +4,10 @@ SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
</Location>
+{% if env != "staging" %}
+ProxyPass "/mirrormanager/xmlrpc" "http://mm-frontend-checkin01/mirrormanager/xmlrpc"
+ProxyPassReverse "/mirrormanager/xmlrpc" "http://mm-frontend-checkin01/mirrormanager/xmlrpc"
+{% endif %}
+
ProxyPass {{ localpath }} {{ proxyurl }}{{remotepath}}
ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}}