ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Нужна помощь с rewrite (www.doma in.com на forum.domain.com)


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: Нужна помощь с rewrite (www.doma in.com на forum.domain.com)
  • From: Max Ivanov <ivanov.maxim@xxxxxxxxx>
  • Date: Fri, 28 Jan 2011 09:04:56 +0000
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=lpQkCBiFg2r+IJNudPmDf6hy08CPaGJJhGIB/Y5SfTI=; b=a3Q5HlYALHm6KE8+jGvzVq73lopS2ctJc7SZs6M9tQCaHQ9CDrgBXV5KVCD8MOfMkB MJqtGULYD3UPdKPXjK6UEfYPmv8TK9H37wwGqGI+BkcdAyidjp169dEK48xW5ghvL7F3 gv2H0I3DBuYJfKteVDYAFtlKQf4QAQrI72w+c=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=ZDvx1JAq/QWkK5EJEIsbt7Hd3ibc9HPE2EeL/IVxw/VghEuG5G9gyXlSmIkAx1JswE X5U2HyunNQSQGmSXHd19PoU7hPjObbPVW0D83gAh7IvCKsMDCZCj2KJyAqDUak3hhQim aDNHoGAN2ckZQPdXo+YXcv+2HZkqf+7mGovHA=
  • In-reply-to: <5f49490abde6ff3919d747195c6a7609.NginxMailingListRussian@xxxxxxxxxxxxxxx>
  • References: <5f49490abde6ff3919d747195c6a7609.NginxMailingListRussian@xxxxxxxxxxxxxxx>

> location /forum/ {
> rewrite ^ http://forum.domain.com permanent;
>        }

ИМХО лучший способ:

location /forum/ {
  rewrite ^ http://forum.domain.com$request_uri? permanent;
}
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.