summaryrefslogtreecommitdiff
path: root/templates/vhosts/php/php.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/vhosts/php/php.erb')
-rw-r--r--templates/vhosts/php/php.erb8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/vhosts/php/php.erb b/templates/vhosts/php/php.erb
index 411bfd6..4a6c829 100644
--- a/templates/vhosts/php/php.erb
+++ b/templates/vhosts/php/php.erb
@@ -57,7 +57,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
@@ -128,7 +132,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