split the error_log for each virtual host in Apache 2.2

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

 



Hi,


I am trying to implement the dynamic virtual host with Rewrite in Apache 2.2. The codes are shown bellow,


<VirtualHost *:80>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(.+)\.domain\.com$ [NC]
RewriteRule ^(.*) /home/%1/public_html$1
# record all error_log entries for virtual hosts
ErrorLog logs/cust-logs/vh_error_log
</VirtualHost>

One requirement is to create error_log for each virtual host. Is there any way to split this vh_error_log for each virtual host? 
Or is there any good way to create the error_log for each virtual host?

Thank you,
Lingyun



[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