比方说,我的子域名为largefiles.domain.com这是在一个专用的服务器,我可以改变任何configuration。 服务器运行Apache / 2.2.3(CentOS)
我如何限制从networking服务器下载的每个文件只有10Kbps的文件下载? 什么是最简单的解决scheme来实现这个整个子域?
我会去mod_bw :
示例:限制每个用户在虚拟主机上的最大速度为10Kb / s:
<Virtualhost *> BandwidthModule On ForceBandWidthModule On Bandwidth all 10240 MinBandwidth all -1 Servername www.example.com </Virtualhost>
mod_cband应该为你解决这个问题。
看到这个很好的教程: http : //www.howtoforge.com/mod_cband_apache2_bandwidth_quota_throttling