# DO NOT EDIT - This file is being maintained by Chef # Enable HTTP/2 over TLS Protocols h2 http/1.1 # Set the number of seconds before receives and sends time out Timeout <%= node[:apache][:timeout] %> # Decide whether or not to allow persistent connections Keepalive <%= node[:apache][:keepalive] ? "On" : "Off" %> <% if node[:apache][:mpm] == "prefork" -%> # Configure prefork MPM StartServers <%= node[:apache][:prefork][:start_servers] %> <% if node[:apache][:prefork][:server_limit] -%> ServerLimit <%= node[:apache][:prefork][:server_limit] %> <% end -%> MinSpareServers <%= node[:apache][:prefork][:min_spare_servers] %> MaxSpareServers <%= node[:apache][:prefork][:max_spare_servers] %> MaxRequestWorkers <%= node[:apache][:prefork][:max_request_workers] %> MaxConnectionsPerChild <%= node[:apache][:prefork][:max_connections_per_child] %> <% end -%> <% if node[:apache][:mpm] == "worker" -%> # Configure worker MPM StartServers <%= node[:apache][:worker][:start_servers] %> <% if node[:apache][:worker][:server_limit] -%> ServerLimit <%= node[:apache][:worker][:server_limit] %> <% end -%> MinSpareThreads <%= node[:apache][:worker][:min_spare_threads] %> MaxSpareThreads <%= node[:apache][:worker][:max_spare_threads] %> ThreadLimit <%= node[:apache][:worker][:thread_limit] %> ThreadsPerChild <%= node[:apache][:worker][:threads_per_child] %> MaxRequestWorkers <%= node[:apache][:worker][:max_request_workers] %> MaxConnectionsPerChild <%= node[:apache][:worker][:max_connections_per_child] %> <% end -%> <% if node[:apache][:mpm] == "event" -%> # Configure event MPM StartServers <%= node[:apache][:event][:start_servers] %> <% if node[:apache][:event][:server_limit] -%> ServerLimit <%= node[:apache][:event][:server_limit] %> <% end -%> MinSpareThreads <%= node[:apache][:event][:min_spare_threads] %> MaxSpareThreads <%= node[:apache][:event][:max_spare_threads] %> ThreadLimit <%= node[:apache][:event][:thread_limit] %> ThreadsPerChild <%= node[:apache][:event][:threads_per_child] %> MaxRequestWorkers <%= node[:apache][:event][:max_request_workers] %> MaxConnectionsPerChild <%= node[:apache][:event][:max_connections_per_child] %> <% if node[:apache][:event][:async_request_worker_factor] -%> AsyncRequestWorkerFactor <%= node[:apache][:event][:async_request_worker_factor] %> <% end -%> <% if node[:apache][:event][:listen_cores_buckets_ratio] -%> ListenCoresBucketsRatio <%= node[:apache][:event][:listen_cores_buckets_ratio] %> <% end -%> <% end -%> # Default to UTF-8 AddDefaultCharset utf-8 # Add extra mime types AddType application/x-xz .xz # Configure logging BufferedLogs <%= node[:apache][:buffered_logs] ? "On" : "Off" %> LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %Dus %{SSL_PROTOCOL}x %{SSL_CIPHER}x" combined_extended