Answer the question
In order to leave comments, you need to log in
NGINX how to write uri part to variable?
Hello
, please tell me how in nginx it will write part of the uri to a variable,
for example
www.somesite.com/55/7569/somepage.html,
I need to take the second path, that is, 7569 and write it to some variable for further processing, and skip the user further. I can look at
^/[0-9]*/[0-9]*/ for example, but I don't know how to get what exactly is in the second [0-9]* :(
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question