Redirecting from mysite.com to www.mysite.com

Thomas iamkenzo at gmail.com
Fri Sep 19 00:41:25 MSD 2008


Hmmm that's getting strange:

In my other server block, I had: server_name _;

And I got this infinite loop.

So I have now hardcoded the server name as: server_name www.mysite.com;

Now I don't get the infinite loop, but the rewriting of mysite.com ->
www.mysite.com doesn't happen.





More information about the nginx mailing list