]> git.openstreetmap.org Git - chef.git/commitdiff
Log requests using basic authentication
authorTom Hughes <tom@compton.nu>
Sun, 31 Jul 2022 19:27:26 +0000 (20:27 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 31 Jul 2022 19:27:26 +0000 (20:27 +0100)
cookbooks/web/templates/default/apache.frontend.erb

index 9c7e2b1710c5b8bb65f9310abf4aa62527201e29..0caf155cc703da25920ea69f2197cf2fd3e0a2e9 100644 (file)
@@ -20,6 +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"
   ErrorLog /var/log/apache2/error.log
 
   #