X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fapache%2Ftemplates%2Fvhost%2F_security.erb;fp=3rdparty%2Fmodules%2Fapache%2Ftemplates%2Fvhost%2F_security.erb;h=0000000000000000000000000000000000000000;hb=6e1426dc77fb4e5d51f07c187c6f2219431dc31e;hp=5ab0a5b5da79394f224c3cd6ce749ffd941c450a;hpb=87423ba664cd5f2bb462ebadd08b1a90d0fe1c8d;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/apache/templates/vhost/_security.erb b/3rdparty/modules/apache/templates/vhost/_security.erb deleted file mode 100644 index 5ab0a5b5d..000000000 --- a/3rdparty/modules/apache/templates/vhost/_security.erb +++ /dev/null @@ -1,20 +0,0 @@ -<% if @modsec_disable_vhost -%> - SecRuleEngine Off -<% end -%> -<% if @_modsec_disable_ids.is_a?(Hash) -%> -<% @_modsec_disable_ids.each do |location,rules| -%> - > -<% Array(rules).each do |rule| -%> - SecRuleRemoveById <%= rule %> -<% end -%> - -<% end -%> -<% end -%> -<% ips = Array(@modsec_disable_ips).join(',') %> -<% if ips != '' %> - SecRule REMOTE_ADDR "<%= ips %>" "nolog,allow,id:1234123455" - SecAction "phase:2,pass,nolog,id:1234123456" -<% end -%> -<% if @modsec_body_limit -%> - SecRequestBodyLimit <%= @modsec_body_limit %> -<% end -%>