From 46629ba55c220e988c7c7464430b82dfadd0d33a Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Fri, 17 Jun 2016 20:33:36 +0000 Subject: [PATCH] Route all xmlrpc requests to mm-frontend-checkin01 Signed-off-by: Patrick Uiterwijk --- .../templates/reversepassproxy.mirrormanager.conf | 5 +++++ .../templates/reversepassproxy.mirrormanager2.conf | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.mirrormanager.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.mirrormanager.conf index 777da7fa1b..d2c6dea4e8 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 +{% 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 e2dc53db4c..c805e3de34 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 +{% 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}}