> -----Message d'origine----- > De : J. Bakshi [mailto:joydeep@xxxxxxxxxxxxxxx] > Envoyé : vendredi 22 janvier 2010 10:29 > À : users@xxxxxxxxxxxxxxxx > Objet : Newbie question about vhost log and webalizer > > Dear all, > > Two newbie questions > > [1] I am running a development server with multiple vhosts. Presently > all logs can be seen at /etc/apache2/log/error.log and at > /etc/apache2/log/access.log. How can I break the logs for each and every > vhosts ; so that the log only contains the specific vhost information ? > > [2] How can I set webalizer for each and every vhosts ? > > Please suggest > > Thanks > > -- > জয়দীপ বক্সী > Hi, I don't really know much about webalizer so I'll only try to help you with 1. : - each <VirtualHost *> section can contain its own '*Log' directives (i.e. "CustomLog logs/vh1_access.log common"). This way you will get one log file per vhost. - you could also keep all your logs in one file by just adding a reference to the host in your log lines, by modifying the log format you use : LogFormat "%h %l %u %t \"%r\" %>s %b %{Host}i" common. In this case you will have to configure your log tool to split information based on this field. Regards. Emmanuel