collect log data for cpecific virtualhost:
touch /var/log/apache2/mywwwfiles_access_log
in apache virtualhost configuration you need to have:
CustomLog /var/log/apache2/mywwwfiles_access_log combined
save and reload apache
/etc/init.d/apache2 reload
then setup webalizer files:
mkdir -p /home/mywwwfiles/webalizer
cp /etc/webalizer/webalizer.conf /home/mywwwfiles/webalizer
cd /home/mywwwfiles/webalizer
nano webalizer.conf
you need to edit only these three:
LogFile /var/log/apache2/mywwwfiles_access_log
OutputDir /home/mywwwfiles/webalizer
HostName mywwwfiles.com
then run
webalizer -q
that will create all html files
enjoy 🙂
Leave a Reply