diff options
author | mh <mh@immerda.ch> | 2009-06-24 20:31:54 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2009-06-24 20:31:54 +0200 |
commit | 5112b0a8ccc83e1b3dc44b55bac5444d7c125877 (patch) | |
tree | 3e7a9273c57d1a99780b144fad5f6a51aa5b0853 /templates/vhosts/php_joomla | |
parent | d0f322a9b6f63dc02947c2b7ac0fde93dee0e05f (diff) |
unified mod_sec stuff, turn audit engine off as well
Diffstat (limited to 'templates/vhosts/php_joomla')
-rw-r--r-- | templates/vhosts/php_joomla/CentOS.erb | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/templates/vhosts/php_joomla/CentOS.erb b/templates/vhosts/php_joomla/CentOS.erb index bc98cdb..fe91459 100644 --- a/templates/vhosts/php_joomla/CentOS.erb +++ b/templates/vhosts/php_joomla/CentOS.erb @@ -60,6 +60,11 @@ <IfModule mod_security2.c> <%- if mod_security.to_s == 'true' then -%> SecRuleEngine On + SecAuditEngine On + <%- else -%> + SecRuleEngine Off + SecAuditEngine Off + <%- end -%> # http://optics.csufresno.edu/~kriehn/fedora/fedora_files/f9/howto/modsecurity.html # Exceptions for Joomla Root Directory <LocationMatch '^/'> @@ -74,9 +79,6 @@ <LocationMatch '^/components/com_expose/expose/manager/amfphp/gateway.php'> SecRuleRemoveById 960010 </LocationMatch> - <%- else -%> - SecRuleEngine DetectionOnly - <%- end -%> SecAuditLogType Concurrent SecAuditLogStorageDir <%= logdir %>/ SecAuditLog <%= logdir %>/mod_security_audit.log @@ -136,6 +138,11 @@ <IfModule mod_security2.c> <%- if mod_security.to_s == 'true' then -%> SecRuleEngine On + SecAuditEngine On + <%- else -%> + SecRuleEngine Off + SecAuditEngine Off + <%- end -%> # http://optics.csufresno.edu/~kriehn/fedora/fedora_files/f9/howto/modsecurity.html # Exceptions for Joomla Root Directory <LocationMatch '^/'> @@ -150,9 +157,6 @@ <LocationMatch '^/components/com_expose/expose/manager/amfphp/gateway.php'> SecRuleRemoveById 960010 </LocationMatch> - <%- else -%> - SecRuleEngine DetectionOnly - <%- end -%> SecAuditLogType Concurrent SecAuditLogStorageDir <%= logdir %>/ SecAuditLog <%= logdir %>/mod_security_audit.log |