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 MaxRequestWorkers <%= node[:apache][:prefork][:max_request_workers] %>
18 MaxConnectionsPerChild <%= node[:apache][:prefork][:max_connections_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 MaxRequestWorkers <%= node[:apache][:worker][:max_request_workers] %>
32 MaxConnectionsPerChild <%= node[:apache][:worker][:max_connections_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 MaxRequestWorkers <%= node[:apache][:event][:max_request_workers] %>
46 MaxConnectionsPerChild <%= node[:apache][:event][:max_connections_per_child] %>
47 <% if node[:apache][:event][:async_request_worker_factor] -%>
48 AsyncRequestWorkerFactor <%= node[:apache][:event][:async_request_worker_factor] %>
53 AddDefaultCharset utf-8
55 # Add extra mime types
56 AddType application/x-xz .xz
59 BufferedLogs <%= node[:apache][:buffered_logs] ? "On" : "Off" %>