I was having a similiar problem - how to add a different extension so that it is included in the Downloads section.
After some reading in awstats.pl I found a reference to the hash %MimeHashLib. This is defined in the AWSTATS package mime - or file awstats-X.X/wwwroot/cgi-bin/lib/mime.pm
In your specific case (for the png) you could either replace 'i' with 'd' in
'png',['image','i'],
but better is probably to go to the awstats config file and change
# Add here a list of kind of url (file extension) that must be counted as
...
# Default: "css js class gif jpg jpeg png bmp ico rss xml swf"
#
NotPageList="css js class gif jpg jpeg png bmp ico rss xml swf"
to
NotPageList=""
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, everyone
Sorry to insist on this, but customer asking for some feedback.
Can someone pls check this ticket?
http://sourceforge.net/p/awstats/discussion/43428/thread/56f6a1ff/
Thanks!
Its a simple question. All I want to know is exactly how top downloads works.
For some customers, it shows JPGs, images in top downloads. But for others, as much as we try, it doesnt!
For example I create a page test.html and inside an IMG SRC (yahoo.jpg) with A HREF link to yahoo.com/yahoo.html
It shows in top downloads yahoo.html and not yahoo.jpg
I tried to download the image also.
Pls, customer just wants to know how many hits to images, which he had with his previous stats solution.
Thanks.
Last edit: robert boyl 2015-01-31
I believe what you're likely seeing is either a caching issue or is it possible that the JPGs just aren't being logged by your web server?
I was having a similiar problem - how to add a different extension so that it is included in the Downloads section.
After some reading in awstats.pl I found a reference to the hash %MimeHashLib. This is defined in the AWSTATS package mime - or file awstats-X.X/wwwroot/cgi-bin/lib/mime.pm
In your specific case (for the png) you could either replace 'i' with 'd' in
but better is probably to go to the awstats config file and change
to