Customize AWStats Downloads

2019-07-27 17:33发布

This seems ridiculous to me, but AWStats is not configured to count exe or dmg files as downloads. What config file or setting can I change? I tried looking through the documentation but found no mention of anything pertaining to Downloads.

I did find out to add another download section containing my file types here http://antezeta.com/news/awstats, but neither the hits or bandwidth calculations are even close to being correct.

1条回答
霸刀☆藐视天下
2楼-- · 2019-07-27 18:20

Add an extra section to the end of the awstats.config file. The following example counts *.dmg files:

ExtraSectionName1="Disk Image Downloads" 
ExtraSectionCodeFilter1="200 304" 
ExtraSectionCondition1="URL,\.dmg" 
ExtraSectionFirstColumnTitle1="File" 
ExtraSectionFirstColumnValues1="URL,(.*)"
ExtraSectionFirstColumnFormat1="%s"
ExtraSectionStatTypes1=HB
ExtraSectionAddAverageRow1=0
ExtraSectionAddSumRow1=1
MaxNbOfExtra1=100
MinHitExtra1=1

Bandwidth counted is unlikely to match file size times download count. Many downloads will not complete or will be interrupted.

查看更多
登录 后发表回答