httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeroen Geilman <jer...@adaptr.nl>
Subject Re: [users@httpd] vhost names on logs
Date Mon, 11 Jul 2011 16:55:57 GMT
On 2011-07-11 15:52, Eric Covener wrote:
> On Mon, Jul 11, 2011 at 8:02 AM, Josu Lazkano
> <josu.lazkano@barcelonamedia.org>  wrote:
>> Hello list, I want to configure a lo system and I need to get the vhost name
>> on the log files to separate them.
>>
> See about adding %v and %V
> http://httpd.apache.org/docs/current/mod/mod_log_config.html#formats
> to your LogFormat.

Personally, I use %{HTTP_HOST}e or just %{Host}i in addition to %v/%V.
This tells me what they tried to connect to, as well.

-- 
J.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message