1 # DO NOT EDIT - This file is being maintained by Chef
3 # Set the number of seconds before receives and sends time out
4 Timeout <%= node[:apache][:timeout] %>
6 # Decide whether or not to allow persistent connections
7 Keepalive <%= node[:apache][:keepalive] ? "On" : "Off" %>
8 <% if node[:apache][:mpm] == "prefork" -%>
10 # Configure prefork MPM
11 StartServers <%= node[:apache][:prefork][:start_servers] %>
12 <% if node[:apache][:prefork][:server_limit] -%>
13 ServerLimit <%= node[:apache][:prefork][:server_limit] %>
15 MinSpareServers <%= node[:apache][:prefork][:min_spare_servers] %>
16 MaxSpareServers <%= node[:apache][:prefork][:max_spare_servers] %>
17 MaxClients <%= node[:apache][:prefork][:max_clients] %>
18 MaxRequestsPerChild <%= node[:apache][:prefork][:max_requests_per_child] %>
20 <% if node[:apache][:mpm] == "worker" -%>
22 # Configure worker MPM
23 StartServers <%= node[:apache][:worker][:start_servers] %>
24 <% if node[:apache][:worker][:server_limit] -%>
25 ServerLimit <%= node[:apache][:worker][:server_limit] %>
27 MinSpareThreads <%= node[:apache][:worker][:min_spare_threads] %>
28 MaxSpareThreads <%= node[:apache][:worker][:max_spare_threads] %>
29 ThreadLimit <%= node[:apache][:worker][:thread_limit] %>
30 ThreadsPerChild <%= node[:apache][:worker][:threads_per_child] %>
31 MaxClients <%= node[:apache][:worker][:max_clients] %>
32 MaxRequestsPerChild <%= node[:apache][:worker][:max_requests_per_child] %>
34 <% if node[:apache][:mpm] == "event" -%>
37 StartServers <%= node[:apache][:event][:start_servers] %>
38 <% if node[:apache][:event][:server_limit] -%>
39 ServerLimit <%= node[:apache][:event][:server_limit] %>
41 MinSpareThreads <%= node[:apache][:event][:min_spare_threads] %>
42 MaxSpareThreads <%= node[:apache][:event][:max_spare_threads] %>
43 ThreadLimit <%= node[:apache][:event][:thread_limit] %>
44 ThreadsPerChild <%= node[:apache][:event][:threads_per_child] %>
45 MaxClients <%= node[:apache][:event][:max_clients] %>
46 MaxRequestsPerChild <%= node[:apache][:event][:max_requests_per_child] %>
50 AddDefaultCharset utf-8