From 5f4404b87faa75c2e8ce674aa61d8119e176480b Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 13 Apr 2009 15:08:10 +0000 Subject: setting logging style of mod_sec according to http://thread.gmane.org/gmane.comp.apache.mod-security.user/5257/focus=5260 it should be that way. --- templates/vhosts/perl/CentOS.erb | 6 ++++-- templates/vhosts/php/CentOS.erb | 6 ++++-- templates/vhosts/php_joomla/CentOS.erb | 6 ++++-- templates/vhosts/php_simplemachine/CentOS.erb | 6 ++++-- templates/vhosts/php_wordpress/CentOS.erb | 6 ++++-- 5 files changed, 20 insertions(+), 10 deletions(-) diff --git a/templates/vhosts/perl/CentOS.erb b/templates/vhosts/perl/CentOS.erb index f4da7d5..c03433d 100644 --- a/templates/vhosts/perl/CentOS.erb +++ b/templates/vhosts/perl/CentOS.erb @@ -53,7 +53,8 @@ <%- else -%> SecRuleEngine Off <%- end -%> - SecAuditLogType serial + SecAuditLogType Concurrent + SecAuditLogStorageDir <%= logdir %>/ SecAuditLog <%= logdir %>/mod_security_audit.log SecDebugLog <%= logdir %>/mod_security_debug.log @@ -114,7 +115,8 @@ <%- else -%> SecRuleEngine Off <%- end -%> - SecAuditLogType serial + SecAuditLogType Concurrent + SecAuditLogStorageDir <%= logdir %>/ SecAuditLog <%= logdir %>/mod_security_audit.log SecDebugLog <%= logdir %>/mod_security_debug.log diff --git a/templates/vhosts/php/CentOS.erb b/templates/vhosts/php/CentOS.erb index 675a0ac..cf7b5bd 100644 --- a/templates/vhosts/php/CentOS.erb +++ b/templates/vhosts/php/CentOS.erb @@ -47,7 +47,8 @@ <%- else -%> SecRuleEngine Off <%- end -%> - SecAuditLogType serial + SecAuditLogType Concurrent + SecAuditLogStorageDir <%= logdir %>/ SecAuditLog <%= logdir %>/mod_security_audit.log SecDebugLog <%= logdir %>/mod_security_debug.log @@ -105,7 +106,8 @@ <%- else -%> SecRuleEngine Off <%- end -%> - SecAuditLogType serial + SecAuditLogType Concurrent + SecAuditLogStorageDir <%= logdir %>/ SecAuditLog <%= logdir %>/mod_security_audit.log SecDebugLog <%= logdir %>/mod_security_debug.log diff --git a/templates/vhosts/php_joomla/CentOS.erb b/templates/vhosts/php_joomla/CentOS.erb index 96558c4..65d485a 100644 --- a/templates/vhosts/php_joomla/CentOS.erb +++ b/templates/vhosts/php_joomla/CentOS.erb @@ -73,7 +73,8 @@ <%- else -%> SecRuleEngine DetectionOnly <%- end -%> - SecAuditLogType serial + SecAuditLogType Concurrent + SecAuditLogStorageDir <%= logdir %>/ SecAuditLog <%= logdir %>/mod_security_audit.log SecDebugLog <%= logdir %>/mod_security_debug.log @@ -147,7 +148,8 @@ <%- else -%> SecRuleEngine DetectionOnly <%- end -%> - SecAuditLogType serial + SecAuditLogType Concurrent + SecAuditLogStorageDir <%= logdir %>/ SecAuditLog <%= logdir %>/mod_security_audit.log SecDebugLog <%= logdir %>/mod_security_debug.log diff --git a/templates/vhosts/php_simplemachine/CentOS.erb b/templates/vhosts/php_simplemachine/CentOS.erb index 673d92f..75ea550 100644 --- a/templates/vhosts/php_simplemachine/CentOS.erb +++ b/templates/vhosts/php_simplemachine/CentOS.erb @@ -44,7 +44,8 @@ <%- if mod_security.to_s == 'true' then -%> SecRuleEngine On - SecAuditLogType serial + SecAuditLogType Concurrent + SecAuditLogStorageDir <%= logdir %>/ SecAuditLog <%= logdir %>/mod_security_audit.log SecDebugLog <%= logdir %>/mod_security_debug.log <%- else -%> @@ -102,7 +103,8 @@ <%- if mod_security.to_s == 'true' then -%> SecRuleEngine On - SecAuditLogType serial + SecAuditLogType Concurrent + SecAuditLogStorageDir <%= logdir %>/ SecAuditLog <%= logdir %>/mod_security_audit.log SecDebugLog <%= logdir %>/mod_security_debug.log <%- else -%> diff --git a/templates/vhosts/php_wordpress/CentOS.erb b/templates/vhosts/php_wordpress/CentOS.erb index e315b7b..5f8b2b6 100644 --- a/templates/vhosts/php_wordpress/CentOS.erb +++ b/templates/vhosts/php_wordpress/CentOS.erb @@ -44,7 +44,8 @@ <%- if mod_security.to_s == 'true' then -%> SecRuleEngine On - SecAuditLogType serial + SecAuditLogType Concurrent + SecAuditLogStorageDir <%= logdir %>/ SecAuditLog <%= logdir %>/mod_security_audit.log SecDebugLog <%= logdir %>/mod_security_debug.log # http://optics.csufresno.edu/~kriehn/fedora/fedora_files/f9/howto/modsecurity.html @@ -104,7 +105,8 @@ <%- if mod_security.to_s == 'true' then -%> SecRuleEngine On - SecAuditLogType serial + SecAuditLogType Concurrent + SecAuditLogStorageDir <%= logdir %>/ SecAuditLog <%= logdir %>/mod_security_audit.log SecDebugLog <%= logdir %>/mod_security_debug.log # http://optics.csufresno.edu/~kriehn/fedora/fedora_files/f9/howto/modsecurity.html -- cgit v1.2.3