ПРОЕКТЫ 


  АРХИВ 


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: *.domain.com ?



Здравствуйте, Андрей.

Ты ошибаешься.

сейчас провёл 3 эксперимента с твоим конфигом:
http://domain.st/foo.html

HTTP/1.1 301 Moved Permanently
Server: nginx/0.6.7
Date: Thu, 23 Aug 2007 08:23:38 GMT
Content-Type: text/html
Content-Length: 184
Location: http://domain.st/bar.html
Connection: keep-alive
Keep-Alive: timeout=60

http://abracadabra/foo.html

HTTP/1.1 301 Moved Permanently
Server: nginx/0.6.7
Date: Thu, 23 Aug 2007 08:23:38 GMT
Content-Type: text/html
Content-Length: 184
Location: http://abracadabra/bar.html
Connection: keep-alive
Keep-Alive: timeout=60

http://1.domain.st/foo.html

HTTP/1.1 301 Moved Permanently
Server: nginx/0.6.7
Date: Thu, 23 Aug 2007 08:23:38 GMT
Content-Type: text/html
Content-Length: 184
Location: http://1.domain.st/bar.html
Connection: keep-alive
Keep-Alive: timeout=60

Всё редиректится правильно.


>>> До первого rewrite - он уйдёт на http://abracadabra/
>>
>> напиши плз. пример такого реврайта.

>      server {
>          server_name abracadabra .domain.st;
>          rewrite ^/foo.html$    /bar.html    permanent;
>      }





-- 
С уважением,
Монашёв Михаил, SoftSearch.ru
mailto:postmaster@xxxxxxxxxxxxx
ICQ# 166233339
http://softsearch.ru/
Без бэкапа по жизни.




 




Copyright © Lexa Software, 1996-2009.