首頁‎ > ‎Linux筆記‎ > ‎CentOS‎ > ‎

安裝Apache2模組mod_bw

安裝 EPEL
http://fedoraproject.org/wiki/EPEL

安裝 mod_bw
yum check-update && yum install mod_bw

設定 mod_bw
vim /etc/httpd/conf.d/mod_bw.conf

清除內容,然後加上一行
LoadModule bw_module modules/mod_bw.so

在 Virtual Host 使用 mod_bw

vim /etc/httpd/conf/httpd.conf

<VirtualHost *:80>
BandwidthModule On
ForceBandWidthModule On
Bandwidth all 10240

DocumentRoot /www
ServerName bw.pastwind.org
ServerAlias bw.*
<Directory /www>
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
</Directory>
</VirtualHost>

其餘設定參考
http://bwmod.sourceforge.net/files/mod_bw-0.7.txt
Comments