Make non-phx2 proxies handle nagios with 421 Misdirected Request

This commit is contained in:
Mikolaj Izdebski 2018-07-16 14:14:11 +00:00
parent a39cfe8484
commit 682935e658

View file

@ -0,0 +1,6 @@
{% if 'phx2' in inventory_hostname %}
ProxyPass {{ localpath }} {{ proxyurl }}{{remotepath}}
ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}}
{% else %}
Redirect 421 /
{% endif %}