Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.