limit_req is not working in virutal location?

pva nginx-forum at forum.nginx.org
Thu Jan 11 15:47:29 UTC 2018


Francis, thank you for you answer.

> On Thu, Jan 11, 2018 at 03:32:07AM -0500, pva wrote:
> I'm slightly guessing, so apologies if I mislead you and hopefully
> someone else will correct this if necessary...
> 
> > Hi. Could you, please, explain why limit_req in @limitspeed location
> > is not working in case of redirect to @allowed virtual location and
works
> > in case I copy @allowed virtual location contents inside @limitspeed? 
> 
> I think that "return" happens before, and therefore effectively
> overrides "limit_req".

This is my guess as well. But then I'm wondering if this limit will be
applied in case try_files redirects to @localdvr?

try_files /live$uri @localdvr; 

--
Peter.

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



More information about the nginx mailing list