summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/vhosts/perl/CentOS.erb12
-rw-r--r--templates/vhosts/php/CentOS.erb12
-rw-r--r--templates/vhosts/php_joomla/CentOS.erb12
3 files changed, 18 insertions, 18 deletions
diff --git a/templates/vhosts/perl/CentOS.erb b/templates/vhosts/perl/CentOS.erb
index 5a5c2b4..f4da7d5 100644
--- a/templates/vhosts/perl/CentOS.erb
+++ b/templates/vhosts/perl/CentOS.erb
@@ -50,12 +50,12 @@
<IfModule mod_security2.c>
<%- if mod_security.to_s == 'true' then -%>
SecRuleEngine On
- SecAuditLogType serial
- SecAuditLog <%= logdir %>/mod_security_audit.log
- SecDebugLog <%= logdir %>/mod_security_debug.log
<%- else -%>
SecRuleEngine Off
<%- end -%>
+ SecAuditLogType serial
+ SecAuditLog <%= logdir %>/mod_security_audit.log
+ SecDebugLog <%= logdir %>/mod_security_debug.log
</IfModule>
<%- unless additional_options.to_s == 'absent' then -%>
@@ -111,12 +111,12 @@
<IfModule mod_security2.c>
<%- if mod_security.to_s == 'true' then -%>
SecRuleEngine On
- SecAuditLogType serial
- SecAuditLog <%= logdir %>/mod_security_audit.log
- SecDebugLog <%= logdir %>/mod_security_debug.log
<%- else -%>
SecRuleEngine Off
<%- end -%>
+ SecAuditLogType serial
+ SecAuditLog <%= logdir %>/mod_security_audit.log
+ SecDebugLog <%= logdir %>/mod_security_debug.log
</IfModule>
<%- unless additional_options.to_s == 'absent' then -%>
diff --git a/templates/vhosts/php/CentOS.erb b/templates/vhosts/php/CentOS.erb
index 7cae983..675a0ac 100644
--- a/templates/vhosts/php/CentOS.erb
+++ b/templates/vhosts/php/CentOS.erb
@@ -44,12 +44,12 @@
<IfModule mod_security2.c>
<%- if mod_security.to_s == 'true' then -%>
SecRuleEngine On
- SecAuditLogType serial
- SecAuditLog <%= logdir %>/mod_security_audit.log
- SecDebugLog <%= logdir %>/mod_security_debug.log
<%- else -%>
SecRuleEngine Off
<%- end -%>
+ SecAuditLogType serial
+ SecAuditLog <%= logdir %>/mod_security_audit.log
+ SecDebugLog <%= logdir %>/mod_security_debug.log
</IfModule>
<%- unless additional_options.to_s == 'absent' then -%>
@@ -102,12 +102,12 @@
<IfModule mod_security2.c>
<%- if mod_security.to_s == 'true' then -%>
SecRuleEngine On
- SecAuditLogType serial
- SecAuditLog <%= logdir %>/mod_security_audit.log
- SecDebugLog <%= logdir %>/mod_security_debug.log
<%- else -%>
SecRuleEngine Off
<%- end -%>
+ SecAuditLogType serial
+ SecAuditLog <%= logdir %>/mod_security_audit.log
+ SecDebugLog <%= logdir %>/mod_security_debug.log
</IfModule>
<%- unless additional_options.to_s == 'absent' then -%>
diff --git a/templates/vhosts/php_joomla/CentOS.erb b/templates/vhosts/php_joomla/CentOS.erb
index 285cf8d..72415cc 100644
--- a/templates/vhosts/php_joomla/CentOS.erb
+++ b/templates/vhosts/php_joomla/CentOS.erb
@@ -56,9 +56,6 @@
<IfModule mod_security2.c>
<%- if mod_security.to_s == 'true' then -%>
SecRuleEngine On
- SecAuditLogType serial
- SecAuditLog <%= logdir %>/mod_security_audit.log
- SecDebugLog <%= logdir %>/mod_security_debug.log
# http://optics.csufresno.edu/~kriehn/fedora/fedora_files/f9/howto/modsecurity.html
# Exceptions for Joomla Root Directory
<LocationMatch '^/'>
@@ -76,6 +73,9 @@
<%- else -%>
SecRuleEngine Off
<%- end -%>
+ SecAuditLogType serial
+ SecAuditLog <%= logdir %>/mod_security_audit.log
+ SecDebugLog <%= logdir %>/mod_security_debug.log
</IfModule>
<%- unless additional_options.to_s == 'absent' then -%>
@@ -130,9 +130,6 @@
<IfModule mod_security2.c>
<%- if mod_security.to_s == 'true' then -%>
SecRuleEngine On
- SecAuditLogType serial
- SecAuditLog <%= logdir %>/mod_security_audit.log
- SecDebugLog <%= logdir %>/mod_security_debug.log
# http://optics.csufresno.edu/~kriehn/fedora/fedora_files/f9/howto/modsecurity.html
# Exceptions for Joomla Root Directory
<LocationMatch '^/'>
@@ -150,6 +147,9 @@
<%- else -%>
SecRuleEngine Off
<%- end -%>
+ SecAuditLogType serial
+ SecAuditLog <%= logdir %>/mod_security_audit.log
+ SecDebugLog <%= logdir %>/mod_security_debug.log
</IfModule>
<%- unless additional_options.to_s == 'absent' then -%>