I have a Apache 2.0 web server that have 2 virtual hosts. Now, I want to configure so that each virtual host records its access log to a seperate file. How can I do? thanks.

2 Responses to “access log for virtual hosts in Apache Server?”

  • DVD-Rom:

    dont think its possible

  • Gandalf Parker:

    Its part of the setup for the virtual hosting of the domain. In the apache conf files. The file that says things like
    ServerName www.example.com
    ServerAdmin myname@example.com
    DocumentRoot /home/example/public_html

    should also have lines for the logs…
    ErrorLog /var/log/apache2/examplecom-error.log
    TransferLog /var/log/apache2/examplecom-access.log

Leave a Reply