diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.conf index 86f30caae5..17472e4d13 100644 --- a/roles/httpd/reverseproxy/templates/reversepassproxy.conf +++ b/roles/httpd/reverseproxy/templates/reversepassproxy.conf @@ -17,5 +17,14 @@ RequestHeader unset Expect early ProxyPreserveHost On {% endif %} +{% if balancer_name is defined %} + + {% for member in balancer_members %} + BalancerMember "{{ member }}/{{remotepath}}" + {% endfor %} + +ProxyPass {{ localpath }} "balancer://{{balancer_name}}" +{% elif %} ProxyPass {{ localpath }} {{ proxyurl }}{{remotepath}} +{% endif %} ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}}