NGINX Location Matching Question - Case insensitive matching at the start of a URI

Brad Van Sickle bvs7085 at
Thu Dec 5 23:29:41 UTC 2013


I'm running in a somewhat urgent issue where I have to make a
case-insensitive location match on a URI segment that is at the
beginning of the URI.

so I want to match


I know that this will match the start of the URI:
location ^~ /uri-segment

and this will match regardless of case:
location ~* /uri-segment(.*)

But chaining them together and using ^~*doesn't seem to work.  Is this
possible?  If so what am I missing?


More information about the nginx mailing list