access log for virtual hosts in Apache Server?
February 7th, 2010 | by admin |
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.
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
2 Responses to “access log for virtual hosts in Apache Server?”
By DVD-Rom on Feb 8, 2010 | Reply
dont think its possible
References :
By Gandalf Parker on Feb 8, 2010 | Reply
Its part of the setup for the virtual hosting of the domain. In the apache conf files. The file that says things like
ServerName http://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
References :
I run my own server out of my house