Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 1 down vote accepted
CustomLog     /var/log/apache2/your-access.log
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .