# Make sure your Apache logs are set up to be the 'combined' type, not
# 'common'. You should have something like this set in your httpd.conf:
# CustomLog /usr/local/apache/logs/access_log combined
# In /usr/local/apache/cgi-bin/awstats is awstats.model.conf Copy that file
# to any virtual's name you want to monitor like awstats.foo.org.conf
# Open up that config file, modify it as necessary. You'll need to set
# at least these (with example values):
#
# LogFile="/usr/local/apache/logs/access_log-foo.org"
# SiteDomain="foo.org"
# DirData="/usr/local/apache/cgi-bin/awstats/data/foo.org"
# DirCgi="/cgi-bin/awstats"
# DirIcons="/images/awstats"
# AllowAccessFromWebToFollowingIPAddresses="192.168.0.1-192.168.0.255"
# SaveDatabaseFilesWithPermissionsForEveryone=0
# Run awstats at the commandline at midnight before your logs are rotated.
# I run a small bash script like this out of root's crontab:
# #!/bin/sh
# /usr/local/apache/cgi-bin/awstats/awstats.pl -config=foo.org -update
# /usr/local/apache/cgi-bin/awstats/awstats.pl -config=foo2.net -update
# /usr/local/apache/cgi-bin/awstats/awstats.pl -config=foo3.com -update
# find /usr/local/apache/cgi-bin/awstats/data -type f -name "awstats*.txt" -exec chown root:nobody {} \;
# find /usr/local/apache/cgi-bin/awstats/data -type f -name "awstats*.txt" -exec chmod 640 {} \;
# When you view the stats, use a URL like this:
# http://localhost/cgi-bin/awstats/awstats.pl?config=foo.org