limit_conn module exclude also on Maxim Dunin recommended code
Francis Daly
francis at daoine.org
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 199.27.128.5 for example?
http://nginx.org/r/geo
> 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;
and
> limit_conn alpha 20;
> limit_req zone=delta burst=90 nodelay;
Compare http://nginx.org/r/limit_conn_zone with http://nginx.org/r/limit_req_zone
Which part of your "req" config means that you omit some client addresses
from accounting?
What similar "zone" config could you use?
f
--
Francis Daly francis at daoine.org
More information about the nginx
mailing list