On Mon, Jul 11, 2011 at 9:52 AM, Eric Covener <[email protected]> wrote:

> On Mon, Jul 11, 2011 at 8:02 AM, Josu Lazkano
> <[email protected]> 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

Reply via email to