Welcome! Log In Create A New Profile

Advanced

rewrite и параметры $1, $2, ...

August 28, 2014 07:10AM
В документации по rewrite-модулю нашёл такой пример:

location /download/ {
rewrite ^(/download/.*)/media/(.*)\..*$ $1/mp3/$2.mp3 break;
rewrite ^(/download/.*)/audio/(.*)\..*$ $1/mp3/$2.ra break;
return 403;
}

Что означают $1, $2? Можно пример запроса?
Спасибо.
Subject Author Posted

rewrite и параметры $1, $2, ...

skeletor August 28, 2014 07:10AM

Re: rewrite и параметры $1, $2, ...

Aleksandr Sytar August 28, 2014 07:24AM

Re: rewrite и параметры $1, $2, ...

Maxim Dounin August 28, 2014 09:44AM

Re: rewrite и параметры $1, $2, ...

skeletor August 28, 2014 09:46AM

Re: rewrite и параметры $1, $2, ...

Peter B. Pokryshev August 28, 2014 09:52AM

Re: rewrite и параметры $1, $2, ...

Maxim Dounin August 28, 2014 10:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 80
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