Running Debian testing, installed awstats package and configured it
for use with my apache2 name-based virtual hosts (I have
/var/www/domain1.org, /var/www/domain2.org etc), but when I go to:
http://domain1.org/cgi-bin/awstats.pl or
http://domain2.org/cgi-bin/awstats.pl it gives the error:

Error: SiteDomain parameter not defined in your config/domain file.
You must edit it for using this version of AWStats.

Setup ('/etc/awstats/awstats.conf' file, web server or permissions)
may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).

I *do not* want it checking file /etc/awstats/awstats.conf! I setup
/etc/awstats/awstats.domain.conf for each domain so how can I force it
to use that?

Here is the relevant info from one of my /etc/awstats/awstats.domain.conf:

LogFile="/var/www/oggthebase.org/logs/access.log"
SiteDomain="oggthebase.org"
HostAliases="www.oggthebase.org"
DirData="/var/lib/awstats/oggthebase.org"

# ls -l /var/lib/awstats/oggthebase.org
total 32
-rw-r--r-- 1 root root  6322 Nov 10 23:17 awstats102010.oggthebase.org.txt
-rw-r--r-- 1 root root 12397 Nov 11 07:17 awstats112010.oggthebase.org.txt
-rw-r--r-- 1 root root  4853 Nov 11 04:17 dnscachelastupdate.oggthebase.org.hash

# ls -l /var/www/oggthebase.org/logs
total 96
-rw-r--r-- 1 root root 66306 Nov 11 08:05 access.log
-rw-r--r-- 1 root root 21056 Nov 11 02:14 error.log

BTW each hour cron runs this script:
/usr/share/doc/awstats/examples/awstats_updateall.pl
-awstatsprog=/usr/lib/cgi-bin/awstats.pl now > /dev/null
So it should be updating all of them and when I look at the DataDir
the stats appear to be there.

Zach

<>< http://www.fidei.org ><>


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/aanlkti=cretsdzydrvsnxbgvefvc=dcakdvxu_5+y...@mail.gmail.com

Reply via email to