]> git.openstreetmap.org Git - chef.git/commitdiff
Define an extended log format for apachae requests
authorTom Hughes <tom@compton.nu>
Sun, 10 Mar 2024 13:42:46 +0000 (13:42 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 10 Mar 2024 13:43:34 +0000 (13:43 +0000)
Adds the request time and SSL details to the standard combined format.

cookbooks/apache/templates/default/httpd.conf.erb

index 62533efae0512bee01b91b50e0f8e432591ab6d6..3f78187f8b540d37e878184e440b09d138964515 100644 (file)
@@ -63,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