Set the error message centrally

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2017-11-26 21:12:32 +00:00
parent 34a655ee37
commit 40de21728b
2 changed files with 2 additions and 1 deletions

View file

@ -1,3 +1,5 @@
Header set AppTime "%D" Header set AppTime "%D"
PassEnv HOSTNAME PassEnv HOSTNAME
Header set AppServer "{{ inventory_hostname }}" Header set AppServer "{{ inventory_hostname }}"
ErrorDocument 421 "You have hit an incorrect proxy for a Fedora Project website due to a bug in Firefox. Please refresh"

View file

@ -8,6 +8,5 @@ TimeOut 10800
ProxyPass {{ localpath }} {{ proxyurl }}{{remotepath}} ProxyPass {{ localpath }} {{ proxyurl }}{{remotepath}}
ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}} ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}}
{% else %} {% else %}
ErrorDocument 421 "You have hit an incorrect proxy for koji due to a bug in Firefox. Please refresh"
Redirect 421 / Redirect 421 /
{% endif %} {% endif %}