Re: how to get logs per vhosts ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Sep 22, 2009, at 08:24 , J. Bakshi wrote:

Well there is one side effect for the web hosting server.  Generally
these type of servers host a huge no. of vhosts. And the CustomLog
options then creates a serious performance issue.  To cope with that an
alternative is to log all the vhost at a common file and then break it
to different vhost specific logs. I am searching how to do that. any
help in that direction is always welcome.

By adding the %v variable to the beginning of the LogFormat string, you'll have the hostname as the first thing in the log entry. You can then split the logs after the fact using the utility called split-logfile that comes with Apache: http://httpd.apache.org/docs/2.2/programs/other.html



--
Rich Bowen




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux