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

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?

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 D.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs