summaryrefslogtreecommitdiff
path: root/templates/vhosts/gitweb
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-06-24 20:31:54 +0200
committermh <mh@immerda.ch>2009-06-24 20:31:54 +0200
commit5112b0a8ccc83e1b3dc44b55bac5444d7c125877 (patch)
tree3e7a9273c57d1a99780b144fad5f6a51aa5b0853 /templates/vhosts/gitweb
parentd0f322a9b6f63dc02947c2b7ac0fde93dee0e05f (diff)
unified mod_sec stuff, turn audit engine off as well
Diffstat (limited to 'templates/vhosts/gitweb')
-rw-r--r--templates/vhosts/gitweb/CentOS.erb30
1 files changed, 30 insertions, 0 deletions
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 @@
</Directory>
<%- end -%>
+
+ <IfModule mod_security2.c>
+ <%- 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
+ </IfModule>
+
<%- unless additional_options.to_s == 'absent' then -%>
<%= additional_options %>
<%- end -%>
@@ -95,6 +110,21 @@
</Directory>
<%- end %>
+
+ <IfModule mod_security2.c>
+ <%- 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
+ </IfModule>
+
<%- unless additional_options.to_s == 'absent' then -%>
<%= additional_options %>
<%- end -%>