2011年2月17日星期四

Re: remove www from the url

On Thu, Feb 17, 2011 at 3:47 PM, Edho P Arief <edhoprima@gmail.com> wrote:
> If I remember correctly:
>
> server {
>  server_name www.mysite.com;
>  rewrite ^ $schema://mysite.com$request_uri permanent;
> }


Exactly what I was about to suggest. Seems to me like you do remember correctly.

Regards,
Luit van Drongelen

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

没有评论:

发表评论