Limit_req off?

I have a location with limit_req and would like to set up an inner path
without the limit but with other settings same, e.g.

location / {
limit_req …;
proxy_pass …;
location /private/ {
limit_req off;
}
}

How come “limit_req off” is not an available option?
Any other easy way of achieving this?

Thanks

Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,263998,263998#msg-263998

You might wish to set up locations like that:

location /outer-path {
limit_req …
}

location /outer-path/inner-path {

}

B. R.

On Tue, Jan 19, 2016 at 11:01 PM, Fry-kun [email protected]

Sure, except there are a few dozen identical config lines in these
locations… If “limit_req off” was an option, that would be the only
difference.

B.R. Wrote:

B. R.

limit_req …;

[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,263998,264025#msg-264025

On Wed, Jan 20, 2016 at 02:14:16PM -0500, Fry-kun wrote:

Hi there,

Sure, except there are a few dozen identical config lines in these
locations… If “limit_req off” was an option, that would be the only
difference.

The usual reason why an option is not there, is that no-one has written
it yet.

(Sometimes, the idea of the option has been explicitly rejected. I do
not know the history of this one.)

However, one possible immediate workaround, untested by me, might be to
define another limit_req_zone with a key variable that you do not set
anywhere. (Call it “zone=off”, for example.)

Then in your nested location, use

limit_req zone=off;

and that should stop the outer value from being inherited.

Good luck with it,

f

Francis D. removed_email_addres[email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs