location ^~ modifier

B.R. reallfqq-nginx at yahoo.fr
Mon Dec 7 21:08:40 UTC 2015


I got kind of a newbie question:
Does the ^~ location modifier finds a matching string at the start of an

I naively thought it was just a variant of the classic prefix search,
without any constraint on the placement of the matched string in an URI.

Is there a simple way of matching the longest prefix location anywhere in
an URI, discarding any regex location at the same level?

*B. R.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20151207/587259d0/attachment.html>

More information about the nginx mailing list