Skip to content

Commit 1ce4b4b

Browse files
committedMar 10, 2024
mediawiki: add apache request duration logging
1 parent 8b775e6 commit 1ce4b4b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎cookbooks/mediawiki/templates/default/apache.erb

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
ServerAdmin webmaster@openstreetmap.org
1010

11-
CustomLog /var/log/apache2/<%= @name %>-access.log combined
11+
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %Dus" combined_with_time
12+
CustomLog /var/log/apache2/<%= @name %>-access.log combined_with_time
1213
ErrorLog /var/log/apache2/<%= @name %>-error.log
1314

1415
RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
@@ -27,7 +28,8 @@
2728
SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
2829
SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
2930

30-
CustomLog /var/log/apache2/<%= @name %>-secure-access.log combined
31+
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %Dus" combined_with_time
32+
CustomLog /var/log/apache2/<%= @name %>-secure-access.log combined_with_time
3133
ErrorLog /var/log/apache2/<%= @name %>-secure-error.log
3234

3335
DocumentRoot <%= @directory %>

0 commit comments

Comments
 (0)