I believe this should mean that requests from IP address 192.168.45.56
are not subject to the rate limiting, but it isn’t working (they do get
blocked by the rate limiting) and I can’t see why.
Is my configuration obviously wrong somewhere?
And if not, is there any way I can easily debug why the rate-limiting is
being applied?
On Wed, Jul 25, 2012 at 01:53:41PM +0100, James Fidell wrote:
…
I believe this should mean that requests from IP address 192.168.45.56
are not subject to the rate limiting, but it isn’t working (they do get
blocked by the rate limiting) and I can’t see why.
Is my configuration obviously wrong somewhere?
Yes, it’s obviously wrong, as well as blogpost you’ve followed.
You don’t use $unlimited variable anywhere in your config, and
just use $binary_remote_addr for limiting without any exceptions.
As you can see from the above config, limit_req_zone now works
based on a $limit variable, which is either client address, or an
empty string. In a latter case client isn’t limited.
Yes, it’s obviously wrong, as well as blogpost you’ve followed.
You don’t use $unlimited variable anywhere in your config, and
just use $binary_remote_addr for limiting without any exceptions.
I did wonder how the $unlimited variable had any effect. Foolish of
me to assume that a blog is accurate
Thanks for your help.
James
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.