Extract text from url using Nginx
I am trying to find a way to extract some text from a url to be used in alias. 
The url is something like:

    /test/user_code_name/

and the alias should be

    /test1/user_name/

So the idea is to just remove the part between _ and _ and use it like a variable.

Thx
L.
Extract text from url using Nginx
===

I am trying to find a way to extract some text from a url to be used in alias. 
The url is something like:

    /test/user_code_name/

and the alias should be

    /test1/user_name/

So the idea is to just remove the part between _ and _ and use it like a variable.

Thx
L.