redirect

Andrew Sitnikov sitnikov at infonet.ee
Thu Jun 2 20:09:35 MSD 2005


Hello Andrew,

обновил с 0.1.33 до 0.1.34 и заработало.

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

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

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

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




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






More information about the nginx-ru mailing list