From b6ab13f2796a6438bb75270ff2e4b2fd99e658ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Carlos?= Date: Tue, 12 Nov 2013 10:05:09 -0200 Subject: Update apache_mod_security.inc Process Status Page Config --- config/apache_mod_security-dev/apache_mod_security.inc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'config/apache_mod_security-dev') diff --git a/config/apache_mod_security-dev/apache_mod_security.inc b/config/apache_mod_security-dev/apache_mod_security.inc index 91f0ff35..ad29dafa 100644 --- a/config/apache_mod_security-dev/apache_mod_security.inc +++ b/config/apache_mod_security-dev/apache_mod_security.inc @@ -546,7 +546,20 @@ EOF; $config['installedpackages']['apachesettings']['config'][0]['row'][] = array('ipaddress' => $aplisten[0], 'ipport' => $aplisten[1]); } } - + // Process Status Page + $mod_status = ""; + if ($setting('statuspage' == "on") { + $mod_status .= <<\n + SetHandler server-status + Order Deny,Allow + Deny from all + EOF; + $mod_status .= "Allow from ".($settings['netaccessstatus'] ? $settings['netaccessstatus'] : "All")."\n"; + $mod_status .= "\n" + EOF; + + } //** Uncomment to allow adding ip/ports not used by any site proxies //** Otherwise unused addresses/ports will be automatically deleted from the configuration -- cgit v1.2.3