summaryrefslogtreecommitdiff
path: root/templates/vhosts/partials/mod_security.erb
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2014-04-14 22:54:24 +0200
committermh <mh@immerda.ch>2014-04-14 22:54:24 +0200
commitc52c48534d76b0a9c965784bd12eb1c1fccd94c6 (patch)
treefe7809e05cf0a222dc823ada82a87f0346d70d08 /templates/vhosts/partials/mod_security.erb
parentdf43214cdce1f474fa11ab1c1752fdd28a2ae19e (diff)
cleanup identation of if then else, especially for the produced file
Diffstat (limited to 'templates/vhosts/partials/mod_security.erb')
-rw-r--r--templates/vhosts/partials/mod_security.erb12
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/vhosts/partials/mod_security.erb b/templates/vhosts/partials/mod_security.erb
index 5b4fca8..f0602d8 100644
--- a/templates/vhosts/partials/mod_security.erb
+++ b/templates/vhosts/partials/mod_security.erb
@@ -1,11 +1,11 @@
<IfModule mod_security2.c>
-<% if mod_security.to_s == 'true' then -%>
+<% if mod_security.to_s == 'true' -%>
SecRuleEngine On
-<% if mod_security_relevantonly.to_s == 'true' then -%>
+<% if mod_security_relevantonly.to_s == 'true' -%>
SecAuditEngine RelevantOnly
-<% else -%>
+<% else -%>
SecAuditEngine On
-<% end -%>
+<% end -%>
<% else -%>
SecRuleEngine Off
SecAuditEngine Off
@@ -16,9 +16,9 @@
SecDebugLog <%= logdir %>/mod_security_debug.log
<% 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 -%>
<% end -%>
<% unless mod_security_additional_options.to_s == 'absent' -%>