Welcome! Log In Create A New Profile

Advanced

Re: rewrite xbt

Maxim Dounin
June 30, 2014 09:20PM
Hello!

On Mon, Jun 30, 2014 at 08:47:30PM -0400, Klim81 wrote:

> переброску с адреса
> http://tr.site.com/0218afaf304828a2a9492a7478ac668/announce на
> http://ip:2710/0218afaf304828a2a9492a7478ac668/announce как-то так.

Если очень надо rewrite, то так:

rewrite ^ http://ip:2710$request_uri? redirect;

Но последнее время считается, что правильнее делать так:

return 302 http://ip:2710$request_uri;

(И в том, и в другом случае, постоянное перенаправление вместо
временного - расставить по вкусу.)

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

rewrite xbt

Klim81 June 30, 2014 06:02PM

Re: rewrite xbt

Maxim Dounin June 30, 2014 08:26PM

Re: rewrite xbt

Klim81 June 30, 2014 08:47PM

Re: rewrite xbt

Maxim Dounin June 30, 2014 09:20PM

Re: rewrite xbt

Klim81 July 01, 2014 04:37AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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