diff --git a/roles/nagios_server/templates/httpd/nagios.conf.j2 b/roles/nagios_server/templates/httpd/nagios.conf.j2 index 2c78ab2a13..a08b8b0823 100644 --- a/roles/nagios_server/templates/httpd/nagios.conf.j2 +++ b/roles/nagios_server/templates/httpd/nagios.conf.j2 @@ -23,12 +23,14 @@ ScriptAlias /tac.cgi /usr/lib64/nagios/cgi-bin/tac.cgi Options ExecCGI -{% if vars['nagios_location'] == 'external' %} SetHandler server-status +{% if vars['nagios_location'] == 'external' %} Require ip 2610:28:3090:3001:dead:beef:cafe:fed9 - +{% else %} + Require ip 127.0.0.1 {% endif %} + RewriteEngine on RewriteRule ^/$ /nagios/ [R]