X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3f0adbf98daf65d842dc28bf372fba289f6c74ec..1a062eb5304d0ef835313e5948053fcdccf20ecf:/cookbooks/apache/templates/default/httpd.conf.erb diff --git a/cookbooks/apache/templates/default/httpd.conf.erb b/cookbooks/apache/templates/default/httpd.conf.erb index f181ba7cf..62533efae 100644 --- a/cookbooks/apache/templates/default/httpd.conf.erb +++ b/cookbooks/apache/templates/default/httpd.conf.erb @@ -1,5 +1,8 @@ # 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] %> @@ -15,7 +18,7 @@ ServerLimit <%= node[:apache][:prefork][:server_limit] %> MinSpareServers <%= node[:apache][:prefork][:min_spare_servers] %> MaxSpareServers <%= node[:apache][:prefork][:max_spare_servers] %> MaxRequestWorkers <%= node[:apache][:prefork][:max_request_workers] %> -MaxRequestsPerChild <%= node[:apache][:prefork][:max_requests_per_child] %> +MaxConnectionsPerChild <%= node[:apache][:prefork][:max_connections_per_child] %> <% end -%> <% if node[:apache][:mpm] == "worker" -%> @@ -29,7 +32,7 @@ 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] %> -MaxRequestsPerChild <%= node[:apache][:worker][:max_requests_per_child] %> +MaxConnectionsPerChild <%= node[:apache][:worker][:max_connections_per_child] %> <% end -%> <% if node[:apache][:mpm] == "event" -%> @@ -43,7 +46,13 @@ 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] %> -MaxRequestsPerChild <%= node[:apache][:event][:max_requests_per_child] %> +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