/etc/cron.daily/00webalizer - master script to create reports for all domains:
vi /etc/cron.daily/00webalizer
Code:
#! /bin/bash
# update access statistics for the web site
BASE=/webroot
/usr/bin/webalizer -c ${BASE}/home/lighttpd/domain1.com/stats/webalizer.conf
/usr/bin/webalizer -c ${BASE}/home/lighttpd/domain2.com/stats/webalizer.conf
/usr/bin/webalizer -c ${BASE}/home/lighttpd/domain3.com/stats/webalizer.conf
Here is /webroot/home/lighttpd/domain1.com/stats/webalizer.conf for domain1.com
Code:
LogFile /webroot/var/log/lighttpd/domain1.com/access.log
LogType clf
OutputDir /webroot/home/lighttpd/domain1.com/stats/out
HistoryName /webroot/home/lighttpd/domain1.com/stats/webalizer.hist
Incremental yes
IncrementalName /webroot/home/lighttpd/domain1.com/stats/webalizer.current
HostName domain1.com
PageType htm*
PageType cgi
PageType php
PageType shtml
DNSCache /tmp/dns_cache.db
DNSChildren 0
Quiet yes
FoldSeqErr yes
AllSearchStr yes
HideSite domain1.com
HideSite localhost
HideReferrer domain1.com
HideURL *.gif
HideURL *.GIF
HideURL *.jpg
HideURL *.JPG
HideURL *.png
HideURL *.PNG
HideURL *.ra
GroupReferrer yahoo.com/ Yahoo!
GroupReferrer excite.com/ Excite
GroupReferrer infoseek.com/ InfoSeek
GroupReferrer webcrawler.com/ WebCrawler
SearchEngine yahoo.com p=
SearchEngine altavista.com q=
SearchEngine google.com q=
SearchEngine eureka.com q=
SearchEngine lycos.com query=
SearchEngine hotbot.com MT=
SearchEngine msn.com MT=
SearchEngine infoseek.com qt=
SearchEngine webcrawler searchText=
SearchEngine excite search=
SearchEngine netscape.com search=
SearchEngine mamma.com query=
SearchEngine alltheweb.com query=
SearchEngine northernlight.com qr=
Now all you have to do is create /webroot/home/lighttpd/domain2.com/stats/webalizer.conf for domain2.com and so on.
Hope this helps out!
__________________
Vivek Gite
Linux Evangelist

Be proud
RHEL user, and let the world know about your enterprise choices!
Join RedHat user group.

Always use
CODE tags for posting system output and commands!

Do you run a Linux? Let's face it,
you need help