From 016c8109ac7031e095a1c83e54a39c96adb6a508 Mon Sep 17 00:00:00 2001 From: Kimo Rosenbaum Date: Thu, 7 Apr 2016 15:10:50 -0700 Subject: [PATCH] Wrap mod_security directives in an IfModule --- templates/vhost/_security.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/vhost/_security.erb b/templates/vhost/_security.erb index 5ab0a5b5da..ef383e07b1 100644 --- a/templates/vhost/_security.erb +++ b/templates/vhost/_security.erb @@ -1,3 +1,4 @@ + <% if @modsec_disable_vhost -%> SecRuleEngine Off <% end -%> @@ -18,3 +19,4 @@ <% if @modsec_body_limit -%> SecRequestBodyLimit <%= @modsec_body_limit %> <% end -%> +