aboutsummaryrefslogtreecommitdiffstats
path: root/config/apache_mod_security-dev
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2013-11-12 04:09:42 -0800
committerMarcello Coutinho <marcellocoutinho@gmail.com>2013-11-12 04:09:42 -0800
commitb79756178b145e8f49873c2a59721001d0735d56 (patch)
treef4b848ccd4e70536e70a6ae35c6d345ef1ab5e7f /config/apache_mod_security-dev
parent4ce28c16c7d7010f6da09bfd78b3210c7b7b1a1e (diff)
parentb6ab13f2796a6438bb75270ff2e4b2fd99e658ac (diff)
downloadpfsense-packages-b79756178b145e8f49873c2a59721001d0735d56.tar.gz
pfsense-packages-b79756178b145e8f49873c2a59721001d0735d56.tar.bz2
pfsense-packages-b79756178b145e8f49873c2a59721001d0735d56.zip
Merge pull request #538 from djgel/patch-7
Update apache_mod_security.inc
Diffstat (limited to 'config/apache_mod_security-dev')
-rw-r--r--config/apache_mod_security-dev/apache_mod_security.inc15
1 files changed, 14 insertions, 1 deletions
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 .= <<<EOF
+ <Location /server-status>\n
+ SetHandler server-status
+ Order Deny,Allow
+ Deny from all
+ EOF;
+ $mod_status .= "Allow from ".($settings['netaccessstatus'] ? $settings['netaccessstatus'] : "All")."\n";
+ $mod_status .= "</Location>\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