Anton Yuzhaninov
July 11, 2012 10:40AM
On 07/11/12 18:23, Valery N. wrote:
> Будьте добры, помогите разобраться в ситуации. Мой конфиг залит на
> pastebin:http://pastebin.com/GurMXw1b

Совет не по теме вопроса.

Вместо конструкции вида:

if ($host = 'gomel.map.by' ) {
rewrite ^/(.*)$ http://map.by/%D0%93%D0%BE%D0%BC%D0%B5%D0%BB%D1%8C$1
permanent;
}

лучше написать отдельный блок server {}

server {
server_name gomel.map.by;
location ^/(.*)$ {
return 301 "http://map.by/%D0%93%D0%BE%D0%BC%D0%B5%D0%BB%D1%8C$1";
}
}

--
Anton Yuzhaninov

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

Tricky configuration rewrite rules (Symfony+FastCGI+Cache)

cat_crash July 11, 2012 10:24AM

Re: Tricky configuration rewrite rules (Symfony+FastCGI+Cache)

Anton Yuzhaninov July 11, 2012 10:40AM

Re: Tricky configuration rewrite rules (Symfony+FastCGI+Cache)

Gena Makhomed July 11, 2012 12:46PM

Re: Tricky configuration rewrite rules (Symfony+FastCGI+Cache)

cat_crash July 11, 2012 04:22PM

Re: Tricky configuration rewrite rules (Symfony+FastCGI+Cache)

Gena Makhomed July 12, 2012 08:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 153
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready