aboutsummaryrefslogtreecommitdiffstats
path: root/config/apache_mod_security-dev/apache.template
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2013-11-12 01:13:09 -0200
committerMarcello Coutinho <marcellocoutinho@gmail.com>2013-11-12 01:13:09 -0200
commit4ce28c16c7d7010f6da09bfd78b3210c7b7b1a1e (patch)
treebd71e69f9bf808566f654dfc97111cfd81f76992 /config/apache_mod_security-dev/apache.template
parent5faedaa5c007ba545d197f81891115d1da1cc14a (diff)
downloadpfsense-packages-4ce28c16c7d7010f6da09bfd78b3210c7b7b1a1e.tar.gz
pfsense-packages-4ce28c16c7d7010f6da09bfd78b3210c7b7b1a1e.tar.bz2
pfsense-packages-4ce28c16c7d7010f6da09bfd78b3210c7b7b1a1e.zip
apache-mod-security - load mod_security module only when option is enabled
add MLOGC compile option to modsecurity
Diffstat (limited to 'config/apache_mod_security-dev/apache.template')
-rw-r--r--config/apache_mod_security-dev/apache.template6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/apache_mod_security-dev/apache.template b/config/apache_mod_security-dev/apache.template
index 9147452c..215f3376 100644
--- a/config/apache_mod_security-dev/apache.template
+++ b/config/apache_mod_security-dev/apache.template
@@ -4,7 +4,9 @@
if(file_exists( APACHEDIR ."/libexec/apache22/mod_memcache.so"))
$mod_mem_cache = "LoadModule memcache_module libexec/apache22/mod_memcache.so\n";
}
-
+ if($mods_settings['enablemodsecurity']=="on")
+ $mod_security_module= "LoadModule security2_module libexec/apache22/mod_security2.so\n";
+
$apache_dir=APACHEDIR;
$apache_config = <<<EOF
##################################################################################
@@ -33,7 +35,6 @@ $apache_dir=APACHEDIR;
# with ServerRoot set to "/usr/local" will be interpreted by the
# server as "/usr/local//var/log/foo_log".
-{$mod_security}
#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
@@ -126,6 +127,7 @@ LoadModule alias_module libexec/apache22/mod_alias.so
LoadModule rewrite_module libexec/apache22/mod_rewrite.so
LoadModule reqtimeout_module libexec/apache22/mod_reqtimeout.so
{$mod_mem_cache}
+{$mod_security_module}
<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>