Send a 421 Misdirected error to koji from non-phx2 proxies

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2017-11-26 21:05:59 +00:00
parent a4d4c044c8
commit 34a655ee37

View file

@ -4,5 +4,10 @@ ProxyPreserveHost On
ProxyTimeout 10800
TimeOut 10800
{% if 'phx2' in inventory_hostname %}
ProxyPass {{ localpath }} {{ proxyurl }}{{remotepath}}
ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}}
{% else %}
ErrorDocument 421 "You have hit an incorrect proxy for koji due to a bug in Firefox. Please refresh"
Redirect 421 /
{% endif %}