Install
apt-get install webalizer
Sample config file
LogFile /var/log/apache2/logs/ap2-access.log OutputDir /var/stats/webalizer/tools Incremental yes IncrementalName access.current HostName ap2.example.com
Apache config to serve stats
Alias /stats/ /etc/apache2/stats/forum/
Create .htaccess to add password protection
AuthType Basic AuthName Statistics AuthUserFile /etc/apache2/stats/.htpasswd Require valid-user order deny,allow allow from 192.168.1.2 deny from all