From: Tom Hughes Date: Thu, 4 Aug 2022 18:21:00 +0000 (+0100) Subject: Fix logging of basic authentication use X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/67e2c2a6aefacbcf2f3aca5f793ed696a76ca06d Fix logging of basic authentication use --- diff --git a/cookbooks/web/templates/default/apache.frontend.erb b/cookbooks/web/templates/default/apache.frontend.erb index 0caf155cc..91304f497 100644 --- a/cookbooks/web/templates/default/apache.frontend.erb +++ b/cookbooks/web/templates/default/apache.frontend.erb @@ -20,7 +20,7 @@ # LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %Dus %{UNIQUE_ID}e %{SSL_PROTOCOL}x %{SSL_CIPHER}x" combined_with_time CustomLog /var/log/apache2/access.log combined_with_time - CustomLog /var/log/apache2/basic.log combined_with_time "expr=%{HTTP:WWW-Authenticate} =~ /^Basic/i" + CustomLog /var/log/apache2/basic.log combined_with_time "expr=%{HTTP:Authorization} =~ /^Basic/i" ErrorLog /var/log/apache2/error.log #