From 29131c599f6942069b16acdf58a780ad890cbc68 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 4 Apr 2016 18:56:51 +0200 Subject: [PATCH] library/roles/apache/templates: Fix the ACL rules in the server info and server status configurations. --- apache/templates/info.conf.j2 | 10 ++++----- apache/templates/status.conf.j2 | 36 ++++++++++++++++----------------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/apache/templates/info.conf.j2 b/apache/templates/info.conf.j2 index 1418366..413dfc2 100644 --- a/apache/templates/info.conf.j2 +++ b/apache/templates/info.conf.j2 @@ -4,17 +4,17 @@ # http://servername/server-info (requires that mod_info.c be loaded). # Uncomment and change the "192.0.2.0/24" to allow access from other hosts. # - - SetHandler server-info - Require local + + SetHandler server-info + Require local {% if nagios_monitoring_server_ip is defined %} {% for addr in nagios_monitoring_server_ip %} - Require ip {{ addr }}/24 + Require ip {{ addr }} {% endfor %} {% endif %} {% for addr in apache_info_allowed_hosts %} Require ip {{ addr }} {% endfor %} - + diff --git a/apache/templates/status.conf.j2 b/apache/templates/status.conf.j2 index 9370ca1..28d37ed 100644 --- a/apache/templates/status.conf.j2 +++ b/apache/templates/status.conf.j2 @@ -1,32 +1,32 @@ - # Allow server status reports generated by mod_status, - # with the URL of http://servername/server-status - # Uncomment and change the "192.0.2.0/24" to allow access from other hosts. + # Allow server status reports generated by mod_status, + # with the URL of http://servername/server-status + # Uncomment and change the "192.0.2.0/24" to allow access from other hosts. - - SetHandler server-status - Require local + + SetHandler server-status + Require local {% if nagios_monitoring_server_ip is defined %} {% for addr in nagios_monitoring_server_ip %} - Require ip {{ addr }}/24 + Require ip {{ addr }} {% endfor %} {% endif %} {% for addr in apache_status_allowed_hosts %} Require ip {{ addr }} {% endfor %} - + - # Keep track of extended status information for each request - ExtendedStatus On + # Keep track of extended status information for each request + ExtendedStatus On - # Determine if mod_status displays the first 63 characters of a request or - # the last 63, assuming the request itself is greater than 63 chars. - # Default: Off - #SeeRequestTail On + # Determine if mod_status displays the first 63 characters of a request or + # the last 63, assuming the request itself is greater than 63 chars. + # Default: Off + #SeeRequestTail On - - # Show Proxy LoadBalancer status in mod_status - ProxyStatus On - + + # Show Proxy LoadBalancer status in mod_status + ProxyStatus On + \ No newline at end of file