awstats problems

I'm having troubles when trying to access the /awstats URI, by default it is giving me a 403 Forbidden error. Looking at the Apache directives for the site I see that it has:

ScriptAlias /awstats /home/domain/cgi-bin

but I think it should be:

ScriptAlias /awstats /home/domain/cgi-bin/awstats.pl

Next problem is that in /home/domain/cgi-bin the lang, lib, and plugins symlinks are still pointing to /usr/lib/cgi-bin/lib and etc. even though I set the correct pathnames (under /usr/share/awstats) in the awstats plugin configuration page before creating the domain.

Finally, once I fix all that by hand I am able to access the http://domain.com/awstats URL and see the report, but the URL path it is trying to use for the images is http://domain.com/awstats-icon/... and I don't see a directive anywhere that is trying to set that up for the domain. Adding an Apache directive like the following to the domain's directives takes care of it:

Alias /awstats-icon /usr/share/awstats/icon

Status: 
Closed (fixed)