Welcome! Log In Create A New Profile

Advanced

Re: limit_conn module exclude also on Maxim Dunin recommended code

Francis Daly
January 09, 2015 02:42PM
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@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

limit_conn module exclude also on Maxim Dunin recommended code

ASTRAPI January 04, 2015 09:44AM

Re: limit_conn module exclude also on Maxim Dunin recommended code

Francis Daly January 07, 2015 06:48PM

Re: limit_conn module exclude also on Maxim Dunin recommended code

ASTRAPI January 08, 2015 12:31PM

Re: limit_conn module exclude also on Maxim Dunin recommended code

Francis Daly January 09, 2015 02:42PM

Re: limit_conn module exclude also on Maxim Dunin recommended code

ASTRAPI January 10, 2015 10:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 180
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready