I'm following the wiki's guidelines with:
server {
server_name mike.example.com;
rewrite ^ http://www.example.com$request_uri? permanent;
}
I'm getting a "this page has too many redirects error". So I tried:
location = example.com { rewrite example.com www.example.com permanent; }
This worked after I had gone to www.example.com but if I clear the cache and
first go to example.com (like a first-time user) I get a "DNS lookup
failed."
Any suggestions, thanks.
--
View this message in context: http://nginx.2469901.n2.nabble.com/too-many-redirects-tp6864778p6864778.html
Sent from the nginx mailing list archive at Nabble.com.