自定义的AWStats下载 [英] Customize AWStats Downloads

查看:194
本文介绍了自定义的AWStats下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这似乎是可笑的我,但是AWStats是没有配置来算EXE或DMG文件作为下载。我可以改变什么配置文件或设置?我试图寻找通过的文件,但发现没有提及任何有关下载。

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.

我没有发现添加其他下载部分包含在这里我的文件类型 http://antezeta.com/news/ AWStats的,但无论是命中或带宽的计算甚至接近是正确。

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.

推荐答案

添加一个额外的部分到 awstats.config 文件的末尾。下面的例子计算 * DMG 文件:

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.

这篇关于自定义的AWStats下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆