limit_conn module exclude also on Maxim Dunin recommended code

Francis Daly francis at daoine.org
Fri Jan 9 19:41:00 UTC 2015


On Thu, Jan 08, 2015 at 12:31:23PM -0500, ASTRAPI wrote:

Hi there,

> Ok with the ip's but i can' figure out how to fix th other problem with
> exclude ip's for limit_conn_zone :(

I'm confused why you're confused.

You originally had

  limit_conn_zone $binary_remote_addr zone=alpha:8m;
  limit_req_zone $binary_remote_addr zone=delta:8m rate=40r/s;

and you wanted to exclude some addresses from the limit_req_zone, so
you changed it to be

  limit_req_zone $limit zone=delta:8m rate=60r/s;

Now you want to exclude the same addresses from the limit_conn_zone,
but you can't see what configuration change might possibly do that?

Replace $binary_remote_addr with $limit.

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list