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