取自http://www.allabc.com
論壇:http://seecee.dev-c.nl/forumdisplay.php?fid=4
下載模組:
http ://www.nowhere-land.org/prog ... st_limit-0.4.tar.gz
官方網址:http://www.nowhere-land.org/programs/mod_vhost_limit/
安裝:
apxs -c mod_vhost_limit.c -o /path/to/libexec/mod_vhost_limit.so
在httpd.conf 加入:
在httpd.conf vule /mod_vhost_limit.so
AddModule mod_vhost_limit.c
設定:
MaxClients 150
ExtendedStatus>
ExtendedStatus>
ServerName server1
DocumentRoot /some/where/1
MaxVhostClients 100
ServerName server3
DocumentRoot /some/where/3
註:需 mod_status 的 ExtendedStatus On 支援! !
如超出限制的並發數在客戶端就會出現503錯誤:
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downbletime scity. Please try again later.
------------------------------------------ --------------------------------------
Apache/1.3.27 Server at server1 Port 80
在error_log 中將會有類似以下的錯誤提示:
[Mon Jun 23 15:22:24 2003] [error] client access to server1 deferred, MaxVhostClients 100 ex >
希望對大家有用! ! (來源:http://www.allabc.com)
http://www.bkjia.com/PHPjc/314498.html
www.bkjia.com