I have an entry in virtual hosts for apache2 as

ErrorLog /var/www/example.com/logs/error.log

The file is created at this locaiton, but logs are written to /var/log/apache2/error.log

I am using ubuntu 10.04

Appreciate any help

link|improve this question

40% accept rate
feedback

1 Answer

up vote 2 down vote accepted

Usually this is caused by an improper Vhost config. Make sure that the requests you're sending to the server are actually being served by the vhost instead of the default apache process.

Another possibility is that apache2 wasn't restarted after adding the ErrorLog config.

link|improve this answer
Thanks for your response, I am using mod wsgi for django which runs as apache child process may be that is the cause! Let me change the config and see how it behaves. – Vishal Jun 11 '10 at 18:55
Thats it, I used mod_wsgi daemon mode and it worked. – Vishal Jun 11 '10 at 19:05
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.