Welcome! Log In Create A New Profile

Advanced

too many redirects

seminal
October 06, 2011 01:28AM
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.

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

too many redirects

seminal October 06, 2011 01:28AM

Re: too many redirects

Igor Sysoev October 06, 2011 02:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 194
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready