diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.conf index 0520c3a862..389707ed49 100644 --- a/roles/httpd/reverseproxy/templates/reversepassproxy.conf +++ b/roles/httpd/reverseproxy/templates/reversepassproxy.conf @@ -19,7 +19,7 @@ ProxyPreserveHost On {% if balancer_name is defined %} # This is something that wants a apache balancer -{% if 'iad2' in inventory_hostname %} +{% if 'iad2' in inventory_hostname or not ocp4|bool %} # This proxy is in iad2 and so we setup the balancer. # Non iad2 proxies just send a 421 for this application to avoid firefox h2 reuse bug SSLProxyEngine On @@ -73,7 +73,7 @@ BalancerMember "https://{{ member }}" ProxyPass {{ localpath }} "balancer://{{balancer_name}}{{remotepath}}" ProxyPassReverse {{ localpath }} "balancer://{{balancer_name}}{{remotepath}}" -{% else %} +{% elif ocp4|bool %} # This is a non iad2 proxy and an app that only exists in iad2 # We do this to avoid a h2 connection reuse bug by firefox. Redirect 421 /