ПРОЕКТЫ 


  АРХИВ 


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: redirect howto



On Mon, 28 Mar 2005, Denis Shaposhnikov wrote:

Прошу меня извинить. Настраиваю nginx первый раз и возникают вопросы
попутно.

Как наиболее просто сделать permanent redirect для определенного
location?

Сейчас сделал

       location /webapp {
           rewrite ^/ https://billing2.vlink.ru/ permanent;
       }

Так и надо?

В данном случае, видимо, так:

        location /webapp {
            rewrite ^/(.+)$  https://billing2.vlink.ru/$1  permanent;
        }


Игорь Сысоев
http://sysoev.ru




 




Copyright © Lexa Software, 1996-2009.