¥½¡¼¥¹¤ò¥À¥¦¥ó¥í¡¼¥É¤·¤Æ°Ê²¼¤ò¼Â¹Ô
# /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¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤¹