X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/7013f21316fbdc86a8a36c7aea7f908878db6ef7..d6ed0a8d7822828b12aa2c90c6bcc62f780c2fa5:/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 9c80314b0..ded019d93 100644 --- a/cookbooks/apache/templates/default/httpd.conf.erb +++ b/cookbooks/apache/templates/default/httpd.conf.erb @@ -1,5 +1,10 @@ # DO NOT EDIT - This file is being maintained by Chef +<% if node[:lsb][:release].to_f >= 18.04 -%> +# Enable HTTP/2 over TLS +Protocols h2 http/1.1 + +<% end -%> # Set the number of seconds before receives and sends time out Timeout <%= node[:apache][:timeout] %> @@ -44,6 +49,9 @@ 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 -%> <% end -%> # Default to UTF-8