Re: подскажите rewrite правило

Vladimir Rusinov vladimir at greenmice.info
Wed Dec 17 20:21:58 MSK 2008


2008/12/16 aris aris <aris66 at yandex.ru>

> При такой конфигурации выдает ошибку 301 Moved Permanently


??? А вам что надо?


>
>
> > server {
> > listen 84.48.92.29:80;
> > server_name 84.48.92.29;
> > rewrite ^(.*) http://new-domain.com$1 permanent;
> > }
> > если нужно именно в корень отправить, то
> > rewrite ^(.*) http://new-domain.com permanent;
> > -----Original Message-----
> > Subject: подскажите rewrite правило
> > Подскажите, пожалуйста, rewrite правило, чтобы организовать запрет
> доступа к сайту по IP адресу. Т.е. чтобы все запросы типа
> http://84.48.92.29 и http://84.48.92.29/site переадресовывались на
> http://www.mysite.ru
>
>
>
>


-- 
Vladimir Rusinov
http://greenmice.info/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20081217/8c83383c/attachment.html>


More information about the nginx-ru mailing list