limit_req_zone: How to apply only to some requests containing some string in the URL?

Francis Daly francis at
Sat Oct 26 12:53:13 UTC 2013

On Fri, Oct 25, 2013 at 07:07:20PM -0400, Brian08275660 wrote:

Hi there,

> ~*(.*)X
> I think that the first two characters mean "match anycase", then the "(.*)"
> would mean "any quantity of characters" and the "X" would mean that specific
> letter.
> Am I right?


But unless you're going to do something with the bit before the X,
then in the context of a map{}, it is equivalent to ~*X, since all you
care about is whether it matches.

It will just as easily match x123 or 123x123.

Francis Daly        francis at

More information about the nginx mailing list