�w��mod_bandwidth
�i�J/usr/ports/www/mod_bandwidth
���G
make clean
make deinstall
make install
�sĶ������A�@�w�O�o
vi /usr/local/etc/apache/httpd.conf
LoadModule bandwidth_module libexec/apache/mod_bandwidth.so
AddModule mod_bandwidth.c
make clean
�y�k�Χ@�ΡG
* BandWidthModule
�ӼҲժ��}��A�i�H��C��Server�i��t�m
* BandWidthPulse
�]�w�p�ɳ��AMS�]�L��^�A��ij���G1000000 �]1��^
* BandWidth
�i�H�w��S�w�ӷ�������y�Arate�H�줸�լ����A���rate��0�ɡA��������y�t�C
�Ҥl�G
BandWidth ecp.fr 0
BandWidth 138.195 0
BandWidth all 1024
* LargeFileLimit
��ǰe�@�Ӥj��filesize KB�j�p���ɮɡA�]�w�@�ӳ̤j�y�t�]�줸��/��^�A��rate
��0���ɭԡA�����t�C
�Ҥl�G
LargeFileLimit 200 3072
LargeFileLimit 1024 2048
�H�W�Ҥl�]�w�p��200KB���ɱN���|�Q����y�t�A�j�p�b200K��1024K�������ɱN�|�Q
���t3072 B/s�A�j��1024KB�����N�|�Q���t2048 B/s.
* MinBandWidth
�]�w�C�ӳs���ǰe��ƪ��a�e��ΡA�HByte�����C�w�]�ȡG256 B/s�C
��rate�]�w��0�ɡA�ϥ��q�{�a�e����C
�w��mod_fastcgi
�i�J/usr/ports/www/mod_ fastcgi
���G
�w��mod_gzipmake clean�sĶ������A�@�w�O�o
make deinstall
make install
vi /usr/local/etc/apache/httpd.conf
LoadModule fastcgi_module libexec/apache/mod_fastcgi.so
AddModule mod_fastcgi.c
AddHandler fastcgi-script fcgi fcgi fpl
make clean
�i�J/usr/ports/www/mod_gzip
���G
make clean�sĶ������A�@�w�O�o
make deinstall
make install
vi /usr/local/etc/apache/httpd.conf�w��mod_limitipconn
LoadModule gzip_module libexec/apache/mod_gzip.so
AddModule mod_gzip.c
make clean
�i�J/usr/ports/www/mod_limitipconn
���G
make clean�sĶ������A�@�w�O�o
make deinstall
make install
vi /usr/local/etc/apache/httpd.conf�w��mod_perl
LoadModule limitipconn_module libexec/apache/mod_limitipconn.so
AddModule mod_limitipconn.c
make clean
�i�J/usr/ports/www/mod_perl
���G
make clean�sĶ������A�@�w�O�o
make deinstall
make install
vi /usr/local/etc/apache/httpd.conf�w��mod_throttle
LoadModule perl_module libexec/apache/mod_perl.so
AddModule mod_perl.c
make clean
�i�J/usr/ports/www/mod_throttle
���G
make clean�sĶ������A�@�w�O�o
make deinstall
make install
vi /usr/local/etc/apache/httpd.conf�w��mod_watch
LoadModule throttle_module libexec/apache/mod_throttle.so
AddModule mod_throttle.c
make clean
�i�J/usr/ports/www/mod_watch
���G
make clean�sĶ������A�@�w�O�o
make deinstall
make install
vi /usr/local/etc/apache/httpd.conf�w��APACHE�ĤT��n��
LoadModule watch_module libexec/apache/mod_watch.so
AddModule mod_watch.c
make clean
�w�˭���C�ӵ��%D��ֵo�Ƴn��
mod_vhost_limit
�w�ˡG
apxs -c mod_vhost_limit.c -o /path/to/libexec/mod_vhost_limit.so�t�m�G
�b httpd.conf �[�J�G
LoadModule vhost_limit_module libexec/mod_vhost_limit.so
AddModule mod_vhost_limit.c
MaxClients 150
ExtendedStatus On
NameVirtualHost *
ServerName server1
DocumentRoot /some/where/1
MaxVhostClients 100
ServerName server2
DocumentRoot /some/where/2
MaxVhostClients 30
ServerName server3
DocumentRoot /some/where/3
�䤤�G server1 �Q��� 100 �Өֵo�u�{�ơC server2 �Q��� 30 �Өֵo�u�{�ơC server3 �S���Q����C
�`�G�� mod_status �� ExtendedStatus On ���I�I
�p�W�X����ֵo�Ʀb�Τ�ݴN�|�X�{503��~�G
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
--------------------------------------------------------------------------------
Apache/1.3.27 Server at server1 Port 80
�b error_log ���N�|������H�U����~���ܡG
[Mon Jun 23 15:22:24 2003] [error] client access to server1 deferred, MaxVhostClients 100 exceeded
�w�˨���ddos��;���n��
dosevasive1.8.tar.gz
�w�ˤ�k:
tar zxvf mod_dosevasive.tar.gz�[�J
cd dosevasive/
/usr/local/apache/bin/apxs -i -c mod_dosevasive.c
vi /usr/local/apache/conf/httpd.conf
LoadModule dosevasive_module libexec/mod_dosevasive.so��L�ݭn�w�˪��n��Q
AddModule mod_dosevasive.c
DOSHashTableSize 3097
DOSPageCount 2
DOSSiteCount 50
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 10