summaryrefslogtreecommitdiff
path: root/templates/vhosts/perl/CentOS.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/vhosts/perl/CentOS.erb')
-rw-r--r--templates/vhosts/perl/CentOS.erb16
1 files changed, 14 insertions, 2 deletions
diff --git a/templates/vhosts/perl/CentOS.erb b/templates/vhosts/perl/CentOS.erb
index 2ecb2a4..580eb62 100644
--- a/templates/vhosts/perl/CentOS.erb
+++ b/templates/vhosts/perl/CentOS.erb
@@ -48,7 +48,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 -%>
@@ -105,7 +111,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 -%>