summaryrefslogtreecommitdiff
path: root/templates/vhosts/gitweb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/vhosts/gitweb')
-rw-r--r--templates/vhosts/gitweb/gitweb.erb8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/vhosts/gitweb/gitweb.erb b/templates/vhosts/gitweb/gitweb.erb
index c5cbb5d..23b723f 100644
--- a/templates/vhosts/gitweb/gitweb.erb
+++ b/templates/vhosts/gitweb/gitweb.erb
@@ -49,7 +49,11 @@
<IfModule mod_security2.c>
<%- if mod_security.to_s == 'true' then -%>
SecRuleEngine On
+ <%- if mod_security_relevantonly.to_s == 'true' then -%>
+ SecAuditEngine RelevantOnly
+ <%- else -%>
SecAuditEngine On
+ <%- end -%>
<%- else -%>
SecRuleEngine Off
SecAuditEngine Off
@@ -114,7 +118,11 @@
<IfModule mod_security2.c>
<%- if mod_security.to_s == 'true' then -%>
SecRuleEngine On
+ <%- if mod_security_relevantonly.to_s == 'true' then -%>
+ SecAuditEngine RelevantOnly
+ <%- else -%>
SecAuditEngine On
+ <%- end -%>
<%- else -%>
SecRuleEngine Off
SecAuditEngine Off