Skip to content

Commit

Permalink
Wrap mod_security directives in an IfModule
Browse files Browse the repository at this point in the history
  • Loading branch information
kimor79 committed Apr 7, 2016
1 parent a43cd35 commit 016c810
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/vhost/_security.erb
@@ -1,3 +1,4 @@
<IfModule mod_security2.c>
<% if @modsec_disable_vhost -%>
SecRuleEngine Off
<% end -%>
Expand All @@ -18,3 +19,4 @@
<% if @modsec_body_limit -%>
SecRequestBodyLimit <%= @modsec_body_limit %>
<% end -%>
</IfModule>

0 comments on commit 016c810

Please sign in to comment.