mod_bw

http://bwmod.sourceforge.net/

¥½¡¼¥¹¤ò¥À¥¦¥ó¥í¡¼¥É¤·¤Æ°Ê²¼¤ò¼Â¹Ô

# /usr/local/apache2/bin/apxs -i -a -c mod_bw.c
# /etc/rc.d/init.d/httpd restart

¥¨¥é¡¼¤¬½Ð¤ë¾ì¹ç¤Ïmod_bw.c¤ò½¤Àµ¤·¤ÆºÆÅپ嵭¼Â¹Ô

# vi mod_bw.c
#if (APR_MAJOR_VERSION < 1)

¢­

#if (APR_MAJOR_VERSION >= 1)

ÂÓ°èÀ©¸Â100kb¤ÇºÇÂçÀܳ¿ô20¤Î¾ì¹ç
BandWidth¤ò0¤Ë¤¹¤ë¤È̵À©¸Â¤À¤¬¡¢MaxConnection¤¬Íø¤«¤Ê¤¯¤Ê¤ë¤ß¤¿¤¤

<VirtualHost *:80>
    BandWidthModule On
    ForceBandWidthModule On
    BandWidth all 102400
    MaxConnection all 20

    ServerAdmin postmaster@example.com
    DocumentRoot /home/user/public_html
    ServerName example.com
    ErrorLog logs/error_log
    CustomLog logs/access_log combined
</VirtualHost>

MaxConnection¤òĶ¤¨¤ë¤È503¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤¹


¥È¥Ã¥×   ÊÔ½¸ Åà·ë º¹Ê¬ ¥Ð¥Ã¥¯¥¢¥Ã¥× źÉÕ Ê£À½ ̾Á°Êѹ¹ ¥ê¥í¡¼¥É   ¿·µ¬ °ìÍ÷ ¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS
Last-modified: 2021-09-19 (Æü) 19:09:16