1 # DO NOT EDIT - This file is being maintained by Chef
3 <% if node[:lsb][:release].to_f >= 18.04 -%>
4 # Enable HTTP/2 over TLS
8 # Set the number of seconds before receives and sends time out
9 Timeout <%= node[:apache][:timeout] %>
11 # Decide whether or not to allow persistent connections
12 Keepalive <%= node[:apache][:keepalive] ? "On" : "Off" %>
13 <% if node[:apache][:mpm] == "prefork" -%>
15 # Configure prefork MPM
16 StartServers <%= node[:apache][:prefork][:start_servers] %>
17 <% if node[:apache][:prefork][:server_limit] -%>
18 ServerLimit <%= node[:apache][:prefork][:server_limit] %>
20 MinSpareServers <%= node[:apache][:prefork][:min_spare_servers] %>
21 MaxSpareServers <%= node[:apache][:prefork][:max_spare_servers] %>
22 MaxRequestWorkers <%= node[:apache][:prefork][:max_request_workers] %>
23 MaxConnectionsPerChild <%= node[:apache][:prefork][:max_connections_per_child] %>
25 <% if node[:apache][:mpm] == "worker" -%>
27 # Configure worker MPM
28 StartServers <%= node[:apache][:worker][:start_servers] %>
29 <% if node[:apache][:worker][:server_limit] -%>
30 ServerLimit <%= node[:apache][:worker][:server_limit] %>
32 MinSpareThreads <%= node[:apache][:worker][:min_spare_threads] %>
33 MaxSpareThreads <%= node[:apache][:worker][:max_spare_threads] %>
34 ThreadLimit <%= node[:apache][:worker][:thread_limit] %>
35 ThreadsPerChild <%= node[:apache][:worker][:threads_per_child] %>
36 MaxRequestWorkers <%= node[:apache][:worker][:max_request_workers] %>
37 MaxConnectionsPerChild <%= node[:apache][:worker][:max_connections_per_child] %>
39 <% if node[:apache][:mpm] == "event" -%>
42 StartServers <%= node[:apache][:event][:start_servers] %>
43 <% if node[:apache][:event][:server_limit] -%>
44 ServerLimit <%= node[:apache][:event][:server_limit] %>
46 MinSpareThreads <%= node[:apache][:event][:min_spare_threads] %>
47 MaxSpareThreads <%= node[:apache][:event][:max_spare_threads] %>
48 ThreadLimit <%= node[:apache][:event][:thread_limit] %>
49 ThreadsPerChild <%= node[:apache][:event][:threads_per_child] %>
50 MaxRequestWorkers <%= node[:apache][:event][:max_request_workers] %>
51 MaxConnectionsPerChild <%= node[:apache][:event][:max_connections_per_child] %>
52 <% if node[:apache][:event][:async_request_worker_factor] -%>
53 AsyncRequestWorkerFactor <%= node[:apache][:event][:async_request_worker_factor] %>
58 AddDefaultCharset utf-8
60 # Add extra mime types
61 AddType application/x-xz .xz
64 BufferedLogs <%= node[:apache][:buffered_logs] ? "On" : "Off" %>