Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Есть домен, нужен редирект
- To: Асафов Сергей aka MurZiK <nginx-ru@xxxxxxxxx>
- Subject: Re: Есть домен, нужен редирект
- From: Gena Makhomed <gmm@xxxxxxxxx>
- Date: Tue, 3 Mar 2009 22:31:29 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=csdoc.com; s=dkim; t=1236112333; bh=hAxBAGKPilNwd3TlfqM4ZNe+VQHSUlV7XNENNzVSBQw=; h=Date:From:X-Mailer:X-Priority:Message-ID:To:Subject:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=fE4YoC2AjtTvc+tv9cMrxu2AH+qDQxzUezsCuKB7BVQCv8a0A/1Yaqnz+N7C07933 WirZLyvcyz0PeyO9Op9zJeSCdTgT/LKYeoMGrBJ3EZHlRj/A5nq24MlDGvj1JZuwssg TrgVYvHAKhjidCmoRPswVAlHkOvqvtYDn5FZ8Fc=
- In-reply-to: <001401c99c3a$abe3f790$2201a8c0@rxqtifbui6dles>
- References: <001401c99c3a$abe3f790$2201a8c0@rxqtifbui6dles>
On Tuesday, March 3, 2009 at 22:00:05, Асафов Сергей aka MurZiK wrote:
АСaM> Нужно с site.com переадресовывать на www.site.ru
АСaM> Как это правильнее сделать?
server {
server_name site.com;
rewrite ^ http://www.site.ru$request_uri? permanent;
}
--
Best regards,
Gena
|