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

Francis Daly francis at daoine.org
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?

Yes.

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.

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list