LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] quick apache question

[ILUG] quick apache question

Ciaran Johnston cj at nologic.org
Mon May 24 19:27:00 IST 2004


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.




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell