*.domain.com ?

Alexey Karagodov karagodov at gmail.com
Thu Aug 23 12:32:29 MSD 2007


сорри, не проснулся ещё ...
для особо параноидальных: rewrite ^/foo.html$    http://$host/bar.html


2007/8/23, Alexey Karagodov <karagodov at gmail.com>:
> для особо праноидальных: rewrite ^/foo.html$    http://$hpst/bar.html
>   permanent;
>
> 2007/8/23, Монашёв Михаил <postmaster at softsearch.ru>:
> > Здравствуйте, Андрей.
> >
> > Ты ошибаешься.
> >
> > сейчас провёл 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