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:
parent
d59d39d281
commit
645cfe0482
1 changed files with 3 additions and 3 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue