default[:apache][:listen_address] = "*"
default[:apache][:buffered_logs] = true
+
+default[:apache][:evasive] = true
variables :hosts => admins["hosts"]
end
+apache_module "evasive" do
+ conf "evasive.conf.erb"
+ only_if { node[:apache][:evasive] }
+end
+
apache_module "brotli" do
conf "brotli.conf.erb"
end
--- /dev/null
+# DO NOT EDIT - This file is being maintained by Chef
+
+<IfModule mod_evasive.c>
+ DOSHashTableSize 65536
+ DOSPageCount 2
+ DOSSiteCount 50
+ DOSPageInterval 1
+ DOSSiteInterval 1
+ DOSBlockingPeriod 60
+</IfModule>
:apache => {
:mpm => "event",
:timeout => 60,
+ :evasive => false,
:event => {
:threads_per_child => 20,
:min_spare_threads => 300,