I have configured one Apache instance to serve pages for several websites, using VirtualHosts. Each site has its own configuration setup under /etc/apache2/sites-available/sitename.

The final thing that remains, is to get each sites apache logs to be saved in its own separate log file.

At the moment, I have the following directive in each site configuration file:

ErrorLog /home/morpheous/work/webdev/frameworks/symfony/sites/nooshoo/log/web.log

This seems to correctly record errors - however, other logging information (like access errors etc seem to be logged into /var/log/apache2/other_vhosts.log

I want to be able to have each site log into a separate file - to aid diagnostics and analysis. Does anyone know what I need to add to my individual site configuration files to force apache to log to separate files?

I am running on Ubuntu 10.0.4

link|improve this question

70% accept rate
feedback

1 Answer

up vote 0 down vote accepted
CustomLog     /var/log/apache2/your-access.log
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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