1
0
Fork 0
forked from infra/ansible

proxies: when using a apache balancer, options go on the balancer members

Clanker lead me astray here. We can't pass options on the proxypass here
because we are using a balancer, so we need to pass them on the balancer
members.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2026-05-11 11:57:42 -07:00
commit 645cfe0482

View file

@ -50,13 +50,13 @@ RewriteRule .* "balancer://{{ balancer_name }}-websocket%{REQUEST_URI}" [P]
<Proxy "balancer://{{balancer_name}}">
{% for member in balancer_members %}
{% if http_not_https_yes_this_is_insecure_and_i_feel_bad %}
BalancerMember "http://{{ member }}"
BalancerMember "http://{{ member }}" {{ proxyopts|default('') }}
{% else %}
BalancerMember "https://{{ member }}"
BalancerMember "https://{{ member }}" {{ proxyopts|default('') }}
{% endif %}
{% endfor %}
</Proxy>
ProxyPass {{ localpath }} "balancer://{{balancer_name}}{{remotepath}}" {{ proxyopts|default('') }}
ProxyPass {{ localpath }} "balancer://{{balancer_name}}{{remotepath}}"
ProxyPassReverse {{ localpath }} "balancer://{{balancer_name}}{{remotepath}}"
{% endif %}
{% else %}