Limit each virtual host under Apache --From uudangdang.com

xiaoxiao2021-03-06  48

Limit each virtual host under Apache

Author:

Simonwoo

Published: sat, 05-mar-2005

Download Module: http://www.nowhere-land.org/programs/mod_vhost_limit/mod_vhost_limit-0.4.tar.gz Official Website: http://www.nowhere-land.org/programs/mod_vhost_limit/ Installation: APXS -C mod_vhost_limit.c -o /path/to/libexec/mod_vhost_limit.so added in httpd.conf: LoadModule vhost_limit_module libexec / mod_vhost_limit.soAddModule mod_vhost_limit.c configuration: MaxClients 150ExtendedStatus OnNameVirtualHost * ServerName server1DocumentRoot / some / where / 1MaxVhostClients 100 ServerName server2DocumentRoot / some / where / 2MaxVhostClients 30 ServerName server3DocumentRoot / some / where / 3 where: server1 100 is limited to the number of concurrent threads. Server2 is limited to 30 concurrent lines. Server3 is not limited. Note: You need MOD_STATUS's ExtendedStatus ON support! ! If the restricted concurrent and number of 503 errors appears in the client: Service Temporarily Unavailablethe Server IS Temporarily Unable to Service Your Request Due to Maintenance Downtime Or Capacity Problems. ----------- -------------------------------------------------- ------------------ Apache / 1.3.27 Server AT Server1 Port 80 will have the following error tips in Error_Log: [Mon Jun 23 15:22:24 2003] Client Access To Server1 Deferred, MaxVhostClients 100 Exceeded I hope to use! !

转载请注明原文地址:https://www.9cbs.com/read-40761.html

New Post(0)