Welcome! Log In Create A New Profile

Advanced

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

cls
December 05, 2013 06:30PM
Hi,

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

/uri-segment/*
/URI-segment/*
/Uri-Segment/*
etc..

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?

Thanks



_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

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

cls December 05, 2013 06:30PM

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

Jonathan Matthews December 05, 2013 06:42PM

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

cls December 05, 2013 06:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 201
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready