I am using name based Virtual hosting on an apache server on Ubuntu 10.0.4

Here is a snippet of one of my sites (in /etc/apache/sites-enabled)

<VirtualHost *:80>
   ServerName example.com
   DocumentRoot /var/www/example

   # CustomLog with format nickname
   LogFormat "%h %l %u %t \"%r\" %>s %b" common
   CustomLog "|/usr/bin/cronolog /var/log/apache2/%Y%m.example.access.log" common

   LogLevel notice
   ErrorLog "|/usr/bin/cronolog /var/log/apache2/%Y%m.example.errors.log"

</VirtualHost>

The access log file is being created in the correct location (with the correct name), but I find that errors are still being logged to /var/log/apache2/error.log

Why is that?

link|improve this question

50% accept rate
1  
<VirttualHost *:80> is a typo? – Pekka Apr 2 '11 at 12:59
Are you 100% sure there is no other ErrorLog directive in any of the conf files? The default ErrorLog might interfere with this, I'm not sure. – Pekka Apr 2 '11 at 12:59
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.