diff options
Diffstat (limited to 'templates/vhosts/php_simplemachine/CentOS.erb')
-rw-r--r-- | templates/vhosts/php_simplemachine/CentOS.erb | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/templates/vhosts/php_simplemachine/CentOS.erb b/templates/vhosts/php_simplemachine/CentOS.erb index 8ccaaba..e1008d2 100644 --- a/templates/vhosts/php_simplemachine/CentOS.erb +++ b/templates/vhosts/php_simplemachine/CentOS.erb @@ -48,13 +48,15 @@ <IfModule mod_security2.c> <%- if mod_security.to_s == 'true' then -%> SecRuleEngine On + SecAuditEngine On + <%- else -%> + SecRuleEngine Off + SecAuditEngine Off + <%- end -%> SecAuditLogType Concurrent SecAuditLogStorageDir <%= logdir %>/ SecAuditLog <%= logdir %>/mod_security_audit.log SecDebugLog <%= logdir %>/mod_security_debug.log - <%- else -%> - SecRuleEngine Off - <%- end -%> </IfModule> <%- unless additional_options.to_s == 'absent' then -%> @@ -108,13 +110,15 @@ <IfModule mod_security2.c> <%- if mod_security.to_s == 'true' then -%> SecRuleEngine On + SecAuditEngine On + <%- else -%> + SecRuleEngine Off + SecAuditEngine Off + <%- end -%> SecAuditLogType Concurrent SecAuditLogStorageDir <%= logdir %>/ SecAuditLog <%= logdir %>/mod_security_audit.log SecDebugLog <%= logdir %>/mod_security_debug.log - <%- else -%> - SecRuleEngine Off - <%- end -%> </IfModule> <%- unless additional_options.to_s == 'absent' then -%> |