diff options
author | mh <mh@immerda.ch> | 2011-05-17 23:09:12 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2011-05-17 23:09:12 +0200 |
commit | 09d598562f66e524e24ca4b1a924a43bb89cecfc (patch) | |
tree | 41049cc277923fbd645e2daa0d7f593195df8625 /templates | |
parent | 88ac72f017da9a0085e0299aa6aac46294cb1590 (diff) |
indentation
Diffstat (limited to 'templates')
-rw-r--r-- | templates/vhosts/partials/mod_security.erb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/templates/vhosts/partials/mod_security.erb b/templates/vhosts/partials/mod_security.erb index bfb729d..5b4fca8 100644 --- a/templates/vhosts/partials/mod_security.erb +++ b/templates/vhosts/partials/mod_security.erb @@ -1,27 +1,27 @@ <IfModule mod_security2.c> - <% if mod_security.to_s == 'true' then -%> +<% if mod_security.to_s == 'true' then -%> SecRuleEngine On - <% if mod_security_relevantonly.to_s == 'true' then -%> +<% if mod_security_relevantonly.to_s == 'true' then -%> SecAuditEngine RelevantOnly - <% else -%> +<% else -%> SecAuditEngine On - <% end -%> - <% else -%> +<% end -%> +<% else -%> SecRuleEngine Off SecAuditEngine Off - <% end -%> +<% end -%> SecAuditLogType Concurrent SecAuditLogStorageDir <%= logdir %>/ SecAuditLog <%= logdir %>/mod_security_audit.log SecDebugLog <%= logdir %>/mod_security_debug.log - <% unless mod_security_rules_to_disable.to_a.empty? -%> +<% unless mod_security_rules_to_disable.to_a.empty? -%> - <% mod_security_rules_to_disable.to_a.each do |rule| -%> +<% mod_security_rules_to_disable.to_a.each do |rule| -%> SecRuleRemoveById "<%= rule %>" - <% end -%> - <% end -%> - <% unless mod_security_additional_options.to_s == 'absent' -%> +<% end -%> +<% end -%> +<% unless mod_security_additional_options.to_s == 'absent' -%> <%= mod_security_additional_options %> - <% end -%> +<% end -%> </IfModule> |