redirect

Andrew Sitnikov sitnikov at infonet.ee
Thu Jun 2 20:07:10 MSD 2005


Hello ,

не работает такой конфиг (не происходит редирект):

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

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

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

-- 
Best regards,
 Andrew                          mailto:sitnikov at infonet.ee






More information about the nginx-ru mailing list