From 5112b0a8ccc83e1b3dc44b55bac5444d7c125877 Mon Sep 17 00:00:00 2001 From: mh Date: Wed, 24 Jun 2009 20:31:54 +0200 Subject: unified mod_sec stuff, turn audit engine off as well --- templates/vhosts/gitweb/CentOS.erb | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'templates/vhosts/gitweb') diff --git a/templates/vhosts/gitweb/CentOS.erb b/templates/vhosts/gitweb/CentOS.erb index 5861270..8ba680b 100644 --- a/templates/vhosts/gitweb/CentOS.erb +++ b/templates/vhosts/gitweb/CentOS.erb @@ -45,6 +45,21 @@ <%- end -%> + + + <%- if mod_security.to_s == 'true' then -%> + SecRuleEngine On + SecAuditEngine On + <%- else -%> + SecRuleEngine Off + SecAuditEngine Off + <%- end -%> + SecAuditLogType Concurrent + SecAuditLogStorageDir <%= logdir %>/ + SecAuditLog <%= logdir %>/mod_security_audit.log + SecDebugLog <%= logdir %>/mod_security_debug.log + + <%- unless additional_options.to_s == 'absent' then -%> <%= additional_options %> <%- end -%> @@ -95,6 +110,21 @@ <%- end %> + + + <%- if mod_security.to_s == 'true' then -%> + SecRuleEngine On + SecAuditEngine On + <%- else -%> + SecRuleEngine Off + SecAuditEngine Off + <%- end -%> + SecAuditLogType Concurrent + SecAuditLogStorageDir <%= logdir %>/ + SecAuditLog <%= logdir %>/mod_security_audit.log + SecDebugLog <%= logdir %>/mod_security_debug.log + + <%- unless additional_options.to_s == 'absent' then -%> <%= additional_options %> <%- end -%> -- cgit v1.2.3