<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[Apache2 限制網頁下載速度 - bw]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Fri, 26 Nov 2010 07:54:40 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	要限制 網站/網頁/檔案 下載速度,&nbsp;&nbsp;Apache 有提供 bw 的模組, 可以設定最大下載速度. <br/>Apache2 bw 模組安裝 <br/>&nbsp;&nbsp; 1.&nbsp;&nbsp;apt-get install libapache2-mod-bw<br/>&nbsp;&nbsp; 2. a2enmod bw # 啟用<br/>&nbsp;&nbsp; 3. /etc/init.d/apache2 restart<br/>bw 模組設定 <br/>於 /etc/apache2/sites-available/example.conf 加上下述:<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;BandwidthModule On<br/>&nbsp;&nbsp;&nbsp;&nbsp;ForceBandWidthModule On<br/>&nbsp;&nbsp;&nbsp;&nbsp;# 512kb * 1024<br/>&nbsp;&nbsp;&nbsp;&nbsp;Bandwidth all 524288 <br/>詳細範例 ：<br/>&lt;VirtualHost *:80&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ServerName example.com<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ServerAlias www.example.com<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# turn bw limitation on<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BandwidthModule On<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# force limitation on every request<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ForceBandWidthModule On<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# limit to 512kB/s<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Bandwidth all 524288<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DocumentRoot /var/www/example<br/>&lt;/VirtualHost&gt; <br/>設定完成後, 重新啟動 /etc/init.d/apache2 restart 即可. <br/>wget http://example.com/a.rar<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;--2010-10-27 16:51:11--&nbsp;&nbsp;http://example.com/a.rar<br/>&nbsp;&nbsp;&nbsp;&nbsp;正在查找主機 example.com... 123.123.123.123<br/>&nbsp;&nbsp;&nbsp;&nbsp;正在連接 example.com&#124;123.123.123.123&#124;:80... 連上了。<br/>&nbsp;&nbsp;&nbsp;&nbsp;已送出 HTTP 要求，正在等候回應... 200 OK<br/>&nbsp;&nbsp;&nbsp;&nbsp;長度： 5202332 (5.0M) [application/rar]<br/>&nbsp;&nbsp;&nbsp;&nbsp;Saving to: `a.rar&#039;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;100%[========================================================================&gt;] 5,202,332&nbsp;&nbsp;&nbsp;&nbsp;507K/s&nbsp;&nbsp; in 10s&nbsp;&nbsp;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;2010-10-27 16:51:21 (508 KB/s) - `a.rar&#039; saved [5202332/5202332] <br/><br/>来源：http://plog.longwin.com.tw/my_note-unix/2010/11/24/apache-module-limit-bandwidth-2010
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] Apache2 限制網頁下載速度 - bw]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>