mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-25 11:00:32 +08:00
Send a 421 Misdirected error to koji from non-phx2 proxies
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user