Re: [nginx] Using User-Agent & IP address to rate limit

2014-07-28 Thread lorenanicole
Thanks for the prompt feedback! Yes, the continuous if directives put my teeth on edge as well. Using a map block to introduce variables for $zone and $burst respectively, I tried this already and had continuous errors. Attempting this again (per your suggestions), I have this error -- nginx: [eme

Re: [nginx] Using User-Agent & IP address to rate limit

2014-07-28 Thread B.R.
On Mon, Jul 28, 2014 at 5:35 PM, lorenanicole wrote: > The concern here is if there is a way to redirect the rewritten uri without > having to break out and start processing the request again (argument last)? > Additionally, is the setting of zone's using the IP address as the key the > proper wa

[nginx] Using User-Agent & IP address to rate limit

2014-07-28 Thread lorenanicole
Nginx novice here - after spending some time both here, reading through other community forums, and trial and error I'm looking for confirmation on my current Nginx config and/or suggestions on a better Nginx config. The end goal is to use both the IP address and User-Agent to rate limit requests b