Re: Multiple limit_req_zone for same site

2015-09-11 Thread itpp2012
strtwtsn Wrote: --- > then the first limit won't apply to the second location > > Thanks Once a location match is made it will stay inside this location including its settings. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261573,26

Re: Multiple limit_req_zone for same site

2015-09-11 Thread strtwtsn
Thanks so if I do location / limit_req_zone and then location /limited/ limit_req_zone then the first limit won't apply to the second location Thanks Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261573,261576#msg-261576 ___ nginx ma

Re: Multiple limit_req_zone for same site

2015-09-11 Thread itpp2012
You can define several zones; limit_req_zone $binary_remote_addr zone=flooda:20m rate=128r/s; limit_req_zone $binary_remote_addr zone=floodp:20m rate=64r/s; limit_req_zone $binary_remote_addr zone=floodh:10m rate=64r/s; and use them separately in location(s) /limited/ { limit_req zone=floodh

Multiple limit_req_zone for same site

2015-09-11 Thread strtwtsn
Hi I'm trying to set multiple limit_req_zones for the same site. Is this possible? We have a few areas where clicking on a link seems to generate a lot of 503s so we'd like to up the limit without jeopardizing the stability of the rest of the site. Thanks Posted at Nginx Forum: http://forum.n

Re: multiple limit_req_zone

2014-09-15 Thread Valentin V. Bartenev
On Monday 15 September 2014 16:05:31 matt_l wrote: > Valentin, > Thank you so much for your example. It definitely helps. > When you say "A client IP address serves as a key. [...]. One megabyte zone > can keep about 16 thousand 64-byte states." Does that mean that 1 megabyte > zone can keep the s

Re: multiple limit_req_zone

2014-09-15 Thread matt_l
Valentin, Thank you so much for your example. It definitely helps. When you say "A client IP address serves as a key. [...]. One megabyte zone can keep about 16 thousand 64-byte states." Does that mean that 1 megabyte zone can keep the state on 16 thousand different sending IP addresses? What abou

Re: multiple limit_req_zone

2014-09-13 Thread Valentin V. Bartenev
On Saturday 13 September 2014 18:07:31 matt_l wrote: > Valentin > > Thank you very much for your response. > > What would be a use case where one would define multiple limit_req_zone? > > For example, I would assume that the following > > limit_req_zone $binary_re

Re: multiple limit_req_zone

2014-09-13 Thread matt_l
Valentin Thank you very much for your response. What would be a use case where one would define multiple limit_req_zone? For example, I would assume that the following limit_req_zone $binary_remote_addr zone=one:10m rate=10r/s; limit_req_zone $binary_remote_addr zone=two:10m rate=10r/s; is

Re: multiple limit_req_zone

2014-09-13 Thread Valentin V. Bartenev
On Saturday 13 September 2014 16:37:05 matt_l wrote: > Hello > > Please may I ask a question with respect to limit_req_zone to better > understand how it works > > Can I have multiple limit_re_zone statements? Of course, you can. > > limit_req_zone $binary_remote_addr zone=one:10mrate

multiple limit_req_zone

2014-09-13 Thread matt_l
Hello Please may I ask a question with respect to limit_req_zone to better understand how it works Can I have multiple limit_re_zone statements? limit_req_zone $binary_remote_addr zone=one:10mrate=10r/s; limit_req_zone $binary_remote_addr zone=two:10mrate=10r/s; Thank you Pos