httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Hansen <jer...@methanesea.com>
Subject Re: [users@httpd] single log file for multiple virtual hosts
Date Wed, 13 Aug 2003 16:05:08 GMT
On Wed, 13 Aug 2003, Joshua Slive wrote:

> 
> On Wed, 13 Aug 2003, Jeremy Hansen wrote:
> 
> >
> > I was wondering if anyone has a good recipe for doing this.  I'm aware of
> > the %V for Logformat.  How do you actually tell all your virtual host
> > directives to send its logging to a single log without opening up more
> > file handles?  My goal is to reduce the amount of open file handles
> > needed.  Right now I have a separate log file for each virtual host and
> > from what I've been reading you can reduce used resources by having only
> > one log and sorting it on the backend.
> >
> > With mod_vhost_alias this seems easy since.  Is that the only way to be
> > able to do this?  I can't use mod_vhost for a number of reasons but a
> > single log file seems like a decent idea to reduce resource usage.
> 
> Just omit the CustomLog/TransferLog directive from the <VirtualHost>
> container and apache will automatically send the requests to the main log
> files (defined outside any <VirtualHost> container).

Cool.  I kind of assumed this is what would happen. 

Thanks
-jeremy

> Joshua.
> 
> ---------------------------------------------------------------------
> 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
> 
> 
> 


---------------------------------------------------------------------
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