From 67e2c2a6aefacbcf2f3aca5f793ed696a76ca06d Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 4 Aug 2022 19:21:00 +0100 Subject: [PATCH] Fix logging of basic authentication use --- cookbooks/web/templates/default/apache.frontend.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 # -- 2.45.1