Re: Multiple matching limit_req

2015-01-09 Thread Joyce Babu
Hi Francis, Thank you for the clever solution. I have updated my server configuration with the change and it is now working. ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Multiple matching limit_req

2015-01-09 Thread Francis Daly
On Fri, Jan 09, 2015 at 07:18:37PM +0530, Joyce Babu wrote: Hi there, > I would like to apply rate limiting based on 3 different criteria. > > 1. CDN should have rate limit of 100 r/s (identified by $http_host) > 2. Whitelisted bots should have a rate limit of 15 r/s (identified by > $http_user_

Multiple matching limit_req

2015-01-09 Thread Joyce Babu
I would like to apply rate limiting based on 3 different criteria. 1. CDN should have rate limit of 100 r/s (identified by $http_host) 2. Whitelisted bots should have a rate limit of 15 r/s (identified by $http_user_agent) 3. All other users should have a rate limit of 5 r/s The rules should be a