Dear Bowen,
Thank you very much.
Lingyun
From: Rich Bowen
Sent: Wednesday, March 19, 2014 2:52 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] split the error_log for each virtual host in Apache
2.2
On 03/19/2014 02:26 PM, Ren, Lingyun wrote
Hi,
I am trying to implement the dynamic virtual host with Rewrite in Apache 2.2.
The codes are shown bellow,
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