From bc3bbcb5c068d2cff3bb068deeafcbc223834119 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Sun, 26 Nov 2017 21:13:33 +0000 Subject: [PATCH] Also return 421 from non-phx2 proxies for src.fp.o Signed-off-by: Patrick Uiterwijk --- roles/httpd/reverseproxy/templates/reversepassproxy.git.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.git.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.git.conf index 023b4d2ffc..25abdb3c65 100644 --- a/roles/httpd/reverseproxy/templates/reversepassproxy.git.conf +++ b/roles/httpd/reverseproxy/templates/reversepassproxy.git.conf @@ -42,5 +42,9 @@ ProxyPreserveHost On Require valid-user +{% if 'phx2' in inventory_hostname %} ProxyPass {{ localpath }} {{ proxyurl }}{{remotepath}} ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}} +{% else %} +Redirect 421 / +{% endif %}