Welcome! Log In Create A New Profile

Advanced

Re: rewrite location in the middle of the path

December 03, 2012 02:46AM
Да, regExp отработал так, как нужно, возникли проблемы с root путем, но это решила с помощью символической ссылки, а с самим регулярным выражением проблем нет, преобразовывает все правильно:

location /my-context/ {
rewrite ^/my-context/([0-9]+)/(.*)$ /folder/folder/$1_$2/ permanent;
}
Subject Author Posted

rewrite location in the middle of the path

nrsk November 30, 2012 11:06AM

Re: rewrite location in the middle of the path

Peter Vereshagin November 30, 2012 11:44AM

Re: rewrite location in the middle of the path

Maxim Dounin November 30, 2012 12:16PM

Re: rewrite location in the middle of the path

nrsk November 30, 2012 02:55PM

Re: rewrite location in the middle of the path

Peter Vereshagin December 01, 2012 03:30PM

Re: rewrite location in the middle of the path

nrsk December 03, 2012 02:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 85
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready