Hi All,
I'm currently setting up a new server to handle a large number of
VHOSTs. We are trying to use dynamically assigned section for vhosts.
The dynamic section is working fine, all nice and peachy.
Logging however is the problem. The docs state that you can't have
individual log files per vhost. (many reasons why this is bad anyway,
even if it was possible)
So basically i'm trying to get all my logs into one file, and then use
the split-logfile program to create individual logs files for each
vhost. Split-logfile however requires that the logfile use the %v at
the start of the log so as to allow it to seperate each entry to the
appropriate vhost.
Problem is, the %v for me is showing the %0 directive that is needed
for dynamic vhosts. Below is a stripped out version of the conf file.
I'd love some opinions....
NameVirtualHost <serverIP>
<VirtualHost <serverIP>
LogFormat "%v %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combinedvhost
CustomLog logs/access_log combinedvhost
UseCanonicalName off
ServerName %0
VirtualDocumentRoot /var/www/html/%0/
VirtualScriptAlias /var/www/html/%0/cgi-bin/
</VirtualHost>
>> Stay informed about: Logging large scale apache 2.0 server with MANY vhosts