From f70f7a95800bc658a502009307f7a25e5ffd5621 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Fri, 23 Jun 2017 18:40:46 +0000 Subject: [PATCH] ok let us try this method --- roles/nagios_server/templates/httpd/nagios.conf.j2 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/roles/nagios_server/templates/httpd/nagios.conf.j2 b/roles/nagios_server/templates/httpd/nagios.conf.j2 index a3091c9137..2c78ab2a13 100644 --- a/roles/nagios_server/templates/httpd/nagios.conf.j2 +++ b/roles/nagios_server/templates/httpd/nagios.conf.j2 @@ -23,10 +23,16 @@ ScriptAlias /tac.cgi /usr/lib64/nagios/cgi-bin/tac.cgi Options ExecCGI -{% if vars['nagios_location'] == 'internal' %} +{% if vars['nagios_location'] == 'external' %} + + SetHandler server-status + Require ip 2610:28:3090:3001:dead:beef:cafe:fed9 + +{% endif %} + RewriteEngine on RewriteRule ^/$ /nagios/ [R] -{% endif %} + Alias /nagios /usr/share/nagios/html/