我试图限制在centOS的带宽。 我已经尝试使用bw_module , cband_module和bandwidth_module ,但所有那些需要使用httpd.conf并且必须重新启动httpd!
我必须这样做住。 我想在站点启动时允许顺利更新,不要重新启动。 有没有办法使用.htaccess而不是httpd.conf ?
这是我的httpd.conf代码:
CBandScoreFlushPeriod 1 CBandRandomPulse On <Virtualhost *> BandwidthModule On ForceBandWidthModule On Bandwidth all 500000 Servername www.XXX.com </Virtualhost>
我需要插入
Bandwidth 123.456.748.9 20000
对于很多的IP和dynamic的。 有什么办法吗?
用iptables可以做到这一点(参见http://blog.edseek.com/~jasonb/articles/traffic_shaping/ )。