Send a 421 Misdirected error to koji from non-phx2 proxies
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
a4d4c044c8
commit
34a655ee37
1 changed files with 5 additions and 0 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue