limit_conn module exclude also on Maxim Dunin recommended code

Francis Daly francis at
Wed Jan 7 23:46:49 UTC 2015

On Sun, Jan 04, 2015 at 09:44:19AM -0500, ASTRAPI wrote:

Hi there,

> 1)Does nginx realy knows how to exclude ip's in this format .0/21 or i must
> use them as for example?

> 2)Now i want to use the limit_conn_zone on the above recommendation from
> But how i can use the above exclude list for the limit_conn module also?

You have

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


> limit_conn alpha 20;
> limit_req zone=delta burst=90 nodelay;

Compare with

Which part of your "req" config means that you omit some client addresses
from accounting?

What similar "zone" config could you use?

Francis Daly        francis at

More information about the nginx mailing list