Stardoll Money Cheats - Kamala - Paintball guns - Find jobs - Find jobs

PDA

View Full Version : AWstats and apache - log single domains instead of all traffic


MrCalc
Dec 12th 2007, 7:50 am
Im wondering how I set up AWstats to report for every single domains instead of logging all traffic from apache.

I would rather have it log each website in own stat instance..

Anyone know how to set it up ?

Jean-Luc
Dec 12th 2007, 11:34 am
Do you have a different log file per domain ?

Jean-Luc

MrCalc
Dec 13th 2007, 12:08 am
No not at the moment, but guess its easy to set up in the vhost file ? (own box running apache)

Clive
Dec 13th 2007, 12:15 am
Have you tried switching to Google Analytics? People say it's more accurate, and it does a pretty good job with rich statistics and graphics. And you can set it up to separate the stats for each of your domains.

Jean-Luc
Dec 13th 2007, 12:42 am
No not at the moment, but guess its easy to set up in the vhost file ? (own box running apache)
You can either add the host name in the common log file or create a log file for each host. Up to you. AWStats supports both configurations.

It is a bit easier to keep the common log file:

1. add this line in httpd.conf:
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" virtual

2. edit the existing CustomLog line in httpd.conf and replace it with:
CustomLog /var/log/httpd/access_log virtual

3. edit the LogFormat in your AWStats config file:
LogFormat = "%virtualname %host %other %logname %time1 %methodurl %code %bytesd %refererquot
quot"

4. edit SiteDomain and HostAliases accordingly in your AWStats config file.

Jean-Luc

MrCalc
Dec 13th 2007, 12:53 am
Clive: Already using it ;-) But I like to be in control and monitor everything heheh

Jean-luc: Somehow I would rather have seperate log files for each domain, seems easier for me. But this will do for now.
Thanks a lot, I will give it a try later today.