Logformat for catching asked hostname in a *.domain.com scenario?
Posted
by Dhiraj Gupta
on Server Fault
See other posts from Server Fault
or by Dhiraj Gupta
Published on 2010-04-19T20:37:07Z
Indexed on
2010/04/19
20:43 UTC
Read the original article
Hit count: 223
I have an Apache 2.2 VirtualHost with a *.domain.com Servername. This is required for my scenario, all subdomains are handled with the same site.
Now, in the access log, I am trying to figure out a logformat variable (or way) that will let me log the asked for domain name. If I use the vhost_combined format, all I get in my access log is *.domain.com entries, not the actual vhost that was asked for.
Anyone know how to do this?
© Server Fault or respective owner