]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/templates/default/apache.frontend.erb
Log requests using basic authentication
[chef.git] / 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
 
   #