Restrict the number of simultaneous connections per vhost
sources http://sisyphus.ru/en/srpm/Sisyphus/apache2-mod_vhost_limit/sources
Install
tar -xzvf mod_vhost_limit-0.2.tgz
cd mod_vhost_limit-0.2/
apxs2 -i -c -n mod_vhost_limit.so mod_vhost_limit.c
vi httpd.conf
LoadModule vhost_limit_module modules/mod_vhost_limit.so
ExtendedStatus On
MaxVhostClients 30
Save and restart apache
In apache error.log
[Tue Aug 17 02:17:46 2010] [warn] Vhost Limit : Access to domain.com deferred, Max Clients 10 exceeded (11 currently)
[Tue Aug 17 02:18:55 2010] [warn] Vhost Limit : Access to domain.com deferred, Max Clients 10 exceeded (13 currently)
[Tue Aug 17 02:18:55 2010] [warn] Vhost Limit : Access to domain.com deferred, Max Clients 10 exceeded (12 currently)
Подписаться на:
Комментарии к сообщению (Atom)
Комментариев нет:
Отправить комментарий