Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
redirect
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@xxxxxxxxxx
|