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