no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | apache_logs [2012/08/13 15:29] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Apache Logs ====== | ||
+ | * [[Apache]] | ||
+ | |||
+ | == Log the domain name visited == | ||
+ | |||
+ | This will display in the Apache logs which sites visitors are hitting: | ||
+ | |||
+ | < | ||
+ | # 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 \" | ||
+ | CustomLog logs/ | ||
+ | </ |