ประเด็นคือผมอยาก Limit Speed ของการ Download ไฟล์บน Apache HTTP โดยใช้ Mod RateLimit
ข้อมูลเพิ่มเติม
http://httpd.apache.org/docs/trunk/mod/mod_ratelimit.html
1. ทำการ Enable mod ratelimit บน Apache (HTTP)
a2enmod ratelimit2. ทำการ Configuration ระบุในส่วนของ URL ที่ต้องการ Limit Speed Download
vi /etc/apache2/conf-available/ratelimit.conf
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiP-XDPCccLOVNPyDzub853kvlakyhlS8477gEkYO45PnfJKt25u1crSvs1Axu79g8EGgMMDrB66Bsap_RMpIsNVlkJ0H1RmWELt6YDimWlAIDQ68PE2HtKKV6Boarfa-R8m7Kx7K6tnlia/s640/limit-http-3.png)
3. ทำการ Enable Configure
a2enconf ratelimit4. ทำการ Restart Apache
service apache2 restart
5. ทดสอบ Download file ขนาด 1.3GB ทั้ง Limite 500Kbps และ Unlimite ในการ Download Speed จาก Browser
เรียบร้อยแล้วครับ
No comments:
Post a Comment