From 682935e65808abed2b3d874e7ca771ea1d3c774f Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Mon, 16 Jul 2018 14:14:11 +0000 Subject: [PATCH] Make non-phx2 proxies handle nagios with 421 Misdirected Request --- .../reverseproxy/templates/reversepassproxy.nagios.conf | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 roles/httpd/reverseproxy/templates/reversepassproxy.nagios.conf diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.nagios.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.nagios.conf new file mode 100644 index 0000000000..b15a70c4b3 --- /dev/null +++ b/roles/httpd/reverseproxy/templates/reversepassproxy.nagios.conf @@ -0,0 +1,6 @@ +{% if 'phx2' in inventory_hostname %} +ProxyPass {{ localpath }} {{ proxyurl }}{{remotepath}} +ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}} +{% else %} +Redirect 421 / +{% endif %}