Differences

This shows you the differences between two versions of the page.

Link to this comparison view

apache_logs [2012/08/13 09:29]
apache_logs [2012/08/13 09:29] (current)
Line 1: Line 1:
 +====== Apache Logs ======
  
 +  * [[Apache]]
 +
 +== Log the domain name visited ==
 +
 +This will display in the Apache logs which sites visitors are hitting:
 +
 +<​code>​
 +# get the server name from the Host: header
 +UseCanonicalName Off
 +# this log format can be split per-virtual-host based on the first field
 +LogFormat "%V %h %l %u %t \"​%r\"​ %s %b" vcommon
 +CustomLog logs/​access_log vcommon
 +</​code>​