*.domain.com ?
    Монашёв Михаил 
    postmaster at softsearch.ru
       
    Thu Aug 23 12:26:01 MSD 2007
    
    
  
Здравствуйте, Андрей.
Ты ошибаешься.
сейчас провёл 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 at softsearch.ru
ICQ# 166233339
http://softsearch.ru/
Без бэкапа по жизни.
    
    
More information about the nginx-ru
mailing list