apache - virtual host logging
Posted
by
imaginative
on Server Fault
See other posts from Server Fault
or by imaginative
Published on 2009-11-20T14:51:28Z
Indexed on
2012/06/18
3:18 UTC
Read the original article
Hit count: 445
I have a virtualhost setup with usecanonicalname off.
I have ServerName domain.com set and ServerAlias *.domain.com in the virtualhost.
Using apache2's %v LogFormat string will only capture domain.com, and I'm trying to get it to capture foo.domain.com so I can split logs accordingly.
LogFormat I'm currently using is
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
© Server Fault or respective owner