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 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

1 Answer 1

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

Your Answer

 
discard

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

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