I am experiencing some problems with a rate-limiting setup.
I have a “global” limit_req declared in my http block.
I also have additional limit_req declarations in various locations, both
@named and unnamed, to provide proper protection to different backend
It seems that additional limit_req is working fine in unnamed locations,
being ignored in @named locations.
I’ve linked to an example config exhibiting the problem:
If I remove the limit_req in the http block, the @dynamic limit_req
perfectly. If I enable limit_req in the http block, the @dynamic
is ignored. In both cases, the limit_req in the unnamed location works
Am I approaching this in the wrong way? How can I make limit_req work
properly in the @dynamic location?
Posted at Nginx Forum: