On Mon 24 May 2004 18:56, Paul Reilly wrote:
> I have a few vhosts, and each has it's own customlog directive,
> so it keeps track of access for that vhost only. But I *also*
> want a global log, which records accesses for all vhosts. Is there
> a way to get Apache to log twice, once to a global log defined in
> the global config, and then to each vhost log individually?
Define a second log file in each vhost entry :
CustomLog /my/vhost/access_log combined
CustomLog /my/full/access_log combined
I do this for about 50 vhosts, doesn't seem to impact performance too much
although the log file can grow quite quickly, so rotate often.
/Ciaran.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!