I have this url:
http://127.0.0.1:8085/test2/Y2hpc3Rh?sx=MTU5OQ==&sy=MTk4&sz=MTg=
and i want to rewrite it to:
/tms/$1/$2/$3/$4.png;
I have this regex:
rewrite /[\w]+/([\w\d]*)?[\w]+[\w]+=([\w\d=]*) /tms/$1/$2.png;
it should work like: /tms/Y2hpc3Rh/MTU5OQ.png but it doesn't. Nginx can not find the groups. What is the problem here?