This maybe the best.
>
> Could you please try this:
>
> server
> {
> server_name ~^www\.(.+)$;
> set $name $1;
> rewrite ^ http://$name$uri? permanent;
> }
>
>>
>> i u could,, u're the best !
>
> Best regards,
> Peter.
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx