Using Analog with Virtual Hosts

If you have added virtual hosts to your server with the vaddvhost command, you can use analog to view statistics for those sites as well. The vaddvhost program creates a separate analog configuration file for each virtual host, which can be found in the host's /www/vhosts/domain.com/logs directory.

To generate statistics reports for a virtual host on your server, log into your server and enter the following command at your shell prompt, where domain.com is the actual domain name of the virtual host:

> analog +g/www/vhosts/domain.com/logs/analog.cfg

You can then view the resulting reports at the following URL (again, replace domain.com with the actual domain name of the virtual host):

http://www.domain.com/webstats/