httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yehuda Katz <yeh...@ymkatz.net>
Subject Re: [users@httpd] vhost names on logs
Date Mon, 11 Jul 2011 13:58:59 GMT
On Mon, Jul 11, 2011 at 9:52 AM, Eric Covener <covener@gmail.com> 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.
>

Apache distributed by Ubuntu usually has the "vhost_combined" log format
already in the config, which should do what you want.

"LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\"
\"%{User-Agent}i\"" vhost_combined"

- Y

Mime
View raw message