summaryrefslogtreecommitdiff
path: root/templates/vhosts/php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/vhosts/php')
-rw-r--r--templates/vhosts/php/CentOS.erb16
1 files changed, 14 insertions, 2 deletions
diff --git a/templates/vhosts/php/CentOS.erb b/templates/vhosts/php/CentOS.erb
index 30a6d72..1bca7e1 100644
--- a/templates/vhosts/php/CentOS.erb
+++ b/templates/vhosts/php/CentOS.erb
@@ -42,7 +42,13 @@
<%- end -%>
<IfModule mod_security2.c>
- 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 -%>
</IfModule>
<%- unless additional_options.to_s == 'absent' then -%>
@@ -96,7 +102,13 @@
</Directory>
<IfModule mod_security2.c>
- 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 -%>
</IfModule>
<%- unless additional_options.to_s == 'absent' then -%>