Welcome! Log In Create A New Profile


too many redirects

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

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
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: 69
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready