View Single Post

  #2 (permalink)  
Old 10-08-2007, 01:50 AM
nixcraft's Avatar
nixcraft nixcraft is offline
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,036
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

/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 | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote