APACHE 使用 mod_bandwidth 做流量管制

LoadModule bandwidth_module modules/mod_bandwidth.so

<IfModule mod_bandwidth.c>
BandWidthModule Ob
BandWidthDataDir C:/WWW
BandWidthPulse 100000

# above 10MB, transfer drops to 5K/sec
# above 1MB, transfer drops to 10K/sec
LargeFileLimit 1024 10000
LargeFileLimit 10240 5000

<Directory "C:/WWW/BX2AA">
BandWidth all 4000
Order deny,allow
Deny from all
Allow from all
</Directory>

</IfModule>

#在 C:\WWW 目錄
#1MBytes 以下不限速
#1MBytes 以上10MBytes 以下 限速 10KBytes
#10MBytes 以上 限速 5KBytes
#
#在 C:\WWW\BX2AA 目錄
#全部限速 4KBytes


Powered by ScribeFire.

留言

這個網誌中的熱門文章