Symptoms
- AWstats node has been migrated per these instructions.
- After migration, web statistics is missing for some websites and is calculated for others. More precisely, all statistics for "www" website aliases is ignored.
- Recalculating per these instructions does not help.
- The version of ActivePerl package installed on the node is higher than or equal to 5.14.
An attempt to launch the awstats update script with extra output gives many lines like:
C:\>"C:\Perl64\bin\perl.exe" "C:\CustomerData\AWStats/wwwroot/cgi-bin/awstats.pl" -showdropped -showcorrupted -update -config=20001 Dropped record (virtual hostname 'www.example.com' does not match SiteDomain='example.com' nor HostAliases parameters): 172.3.24.2 - - [07/Sep/2017:11:32:25 +0100] "POST /xmlrpc.php HTTP/1.1" 200 403 "-" "-" www.example.com
Cause
The issue is recognized as AWStats native bug when bundled with ActivePerl versions >= 5.14. Reference: SkipHosts is ignored
Resolution
Open C:\CustomerData\AWStats/wwwroot/cgi-bin/awstats.pl
script for editing on the AWStats node.
Find and comment the line:
@HostAliases=&OptimizeArray(\@HostAliases,1); if ($Debug) { debug("HostAliases precompiled regex list is now @HostAliases",1); }
It should turn to:
#@HostAliases=&OptimizeArray(\@HostAliases,1); if ($Debug) { debug("HostAliases precompiled regex list is now @HostAliases",1); }