aboutsummaryrefslogtreecommitdiffstats
path: root/config/apache_mod_security-dev/apache_mod_security.template
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2013-11-11 22:33:00 -0200
committerMarcello Coutinho <marcellocoutinho@gmail.com>2013-11-11 22:33:00 -0200
commit5faedaa5c007ba545d197f81891115d1da1cc14a (patch)
treef205affc5f68842879cd902211dd9a4b1d34ac37 /config/apache_mod_security-dev/apache_mod_security.template
parent361b61a7a9030efbe241b51726967a0b1a370d5d (diff)
downloadpfsense-packages-5faedaa5c007ba545d197f81891115d1da1cc14a.tar.gz
pfsense-packages-5faedaa5c007ba545d197f81891115d1da1cc14a.tar.bz2
pfsense-packages-5faedaa5c007ba545d197f81891115d1da1cc14a.zip
Apache - improve modsecurity config file creation
Diffstat (limited to 'config/apache_mod_security-dev/apache_mod_security.template')
-rw-r--r--config/apache_mod_security-dev/apache_mod_security.template10
1 files changed, 6 insertions, 4 deletions
diff --git a/config/apache_mod_security-dev/apache_mod_security.template b/config/apache_mod_security-dev/apache_mod_security.template
index e5a2c864..f6ad6e3e 100644
--- a/config/apache_mod_security-dev/apache_mod_security.template
+++ b/config/apache_mod_security-dev/apache_mod_security.template
@@ -1,8 +1,8 @@
<?php
- // Mod_security enabled?
- if($modsec_settings['enablemodsecurity']) {
- $enable_mod_security = true;
- $mod_security = <<< EOF
+// Mod_security enabled?
+if($mods_settings['enablemodsecurity']=="on") {
+ $enable_mod_security = true;
+ $mod_security = <<< EOF
# -- Rule engine initialization ----------------------------------------------
# Enable ModSecurity, attaching it to every transaction. Use detection
@@ -208,3 +208,5 @@ SecArgumentSeparator &
#
SecCookieFormat 0
+EOF;
+} \ No newline at end of file