Discussion for: http://sysadmingeek.com/articles/setting-up-awstats-on-windows-server-and-iis/
When it comes to gathering statistics on web sites, you can never have enough. While one of the most popular method for tracking statistics is through services such as Google Analytics, log file analysis remains a reliable way to track your visitors as they are immune to script blockers. Not sure what we're talking about? Read the original article, and then come back here to discuss.
This is exactly what I have been looking for! Unfortunately, I am having a heck of a time getting it to work, and hopefully you can provide some assistance?
I followed your guide step by step:
Installed Perl (Strawberry Perl specifically)
I'm running Windows Server 2003, so I have IIS 6.
I configured IIS logging as described.
I set up the appropriate directories for AWStats
When you say "copy the “awstats.model.conf” file to a file named “awstats.domain.com.conf” " do you really mean to name the file awstats.domain.com.conf or do you mean domain.com = the domain the server is joined to?
In the guide you say in the awstats.domain.com.conf file to set: "SiteDomain=”domain.com” Once again do you really mean domain.com or the domain the machine is joined to?
In the guide you say to edit the awstats.domain.com.conf file and set the line: HostAliases=”www.domain.com 11.22.33.44″ (any other URL’s which point to your site)" So what I did was make HostAliases="www.domain.com 192.168.1.10" again the same domain.com question. The IP address I used is that of the server. Most of the post messages in the IIS logs are from the incoming IP address to the servers IP adddress.
When I go to: http://localhost/awstats/awstats.pl?config=domain.com I was getting 401 access issues. I gave everyone access to awstats.pl and now I just get 404's.
Any help would be appreciated.
Replace domain.com with the domain you want to track. For example, this site would use the file name "awstats.sysadmingeek.com.conf". This way, to view the stats (using localhost), the URL would be: http://localhost/awstats/awstats.pl?config=sysadmingeek.com
In a nutshell, whatever you have between "awstats." and ".conf" is what you would put for the config parameter in the URL.
i.e. "awstats.mysite.conf" would use URL http://localhost/awstats/awstats.pl?config=mysite
Regarding the 404, this sounds like an IIS/perl configuration issue. Even if you try to access a config file which does not exist (http://localhost/awstats/awstats.pl?config=doesnotexist.com), you should see an error message generated by AWStats, not an IIS error.
You must log in to post.