Nginx getting last variables on exploded uri

Jonathan Matthews contact at
Sat Mar 15 17:47:42 UTC 2014

On 15 Mar 2014 17:30, "gokhanege" <nginx-forum at> wrote:
> Where is the problem? I cound not found it.

Your problem is that all of your .* matches are greedy, whereas you
(probably) want only the last to be greedy. Have a Google for how to do
that with regular expressions.

You also might want to replace /some/ of your "(.*)" with "([^-]*)" if they
should /never/ contain hyphens.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list