X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/eae105ed027c2c1323e413e2c85560988dc2aeec..8273ef2eea66bd68ce328ebc78b1c5f49513e35c:/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 add175aa2..3f78187f8 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] %> @@ -47,6 +50,9 @@ 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 @@ -57,3 +63,6 @@ AddType application/x-xz .xz # Configure logging BufferedLogs <%= node[:apache][:buffered_logs] ? "On" : "Off" %> + +# Define an extended log format that includes request time and SSL details +LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %Dus %{SSL_PROTOCOL}x %{SSL_CIPHER}x" combined_extended