From e3286ee7ef6e12ccb38a42840ed2d8fee3303486 Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 9 Mar 2009 21:32:28 +0000 Subject: write mod_sec logfiles per vhost --- templates/vhosts/perl/CentOS.erb | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'templates/vhosts/perl') diff --git a/templates/vhosts/perl/CentOS.erb b/templates/vhosts/perl/CentOS.erb index 2ecb2a4..580eb62 100644 --- a/templates/vhosts/perl/CentOS.erb +++ b/templates/vhosts/perl/CentOS.erb @@ -48,7 +48,13 @@ <%- end -%> - SecRuleEngine <%= if mod_security.to_s == 'true' then "On" else "Off" end %> + <%- if mod_security.to_s == 'true' then -%> + SecRuleEngine On + SecAuditLog <%= logdir %>/mod_security_audit.log + SecFilterDebugLog <%= logdir %>/mod_security_debug.log + <%- else -%> + SecRuleEngine Off + <%- end -%> <%- unless additional_options.to_s == 'absent' then -%> @@ -105,7 +111,13 @@ <%- end -%> - SecRuleEngine <%= if mod_security.to_s == 'true' then "On" else "Off" end %> + <%- if mod_security.to_s == 'true' then -%> + SecRuleEngine On + SecAuditLog <%= logdir %>/mod_security_audit.log + SecFilterDebugLog <%= logdir %>/mod_security_debug.log + <%- else -%> + SecRuleEngine Off + <%- end -%> <%- unless additional_options.to_s == 'absent' then -%> -- cgit v1.2.3