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



Hello Andrew,

  0.1.33  0.1.34  .

AS>     (  ):

AS> server {
AS>     listen ip:80;
AS>     server_name host.com;

AS>     location / {
AS>         rewrite ^(.*)$ http://www.host.com$1 permanent;
AS>     }
AS> }

AS> server {
AS>     listen ip:80;
AS>     server_name www.host.com;
AS> }




-- 
Best regards,
 Andrew                            mailto:sitnikov@xxxxxxxxxx




  • References:

 




Copyright © Lexa Software, 1996-2009.