How to limit per virtual host and per client connection number at the same time?

Maxim Dounin mdounin at mdounin.ru
Wed Oct 27 13:19:40 MSD 2010


Hello!

On Wed, Oct 27, 2010 at 12:08:20PM +0800, JWD wrote:

> 
> How to limit per virtual host and per client connection number at the same time, like this:
>     limit_zone server_conn $server_name 10m;
>     limit_conn server_conn 100;
>     limit_zone client_conn $binary_remote_addr 10m;
>     limit_conn client_conn 20;
> This is invalide in nginx config, how to make it work?

Multiple limits aren't supported (yet).

Maxim Dounin



More information about the nginx mailing list