httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Poirier <>
Subject [users@httpd] Re: Separate Virtual Host Configuration File and domain name on log
Date Wed, 15 Jul 2009 12:09:13 GMT
Julien <> writes:

> version: apache 2.2.9
> Actually I'm using a Separate Virtual Host Configuration File:
> (
> But my problem is that I don't have the right domain name in my logs
> and server-status page.
> Instead of having my virtual host domain name, I have domain name of
> the machine.
> I use for log: LogFormat "%v:%p %h %l %u %t \"%r\" %>s %b
> \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined

Since that's just faking virtual hosts by dynamically mapping requests
to doc roots, instead of having actual <VirtualHost> configuration, %v
won't do what you want.

Try logging %{Host}i instead of %v.

Dan Poirier <>

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message