Mobile app version of vmapp.org
Login or Join
Sue5673885

: 1and1 Domain and Heroku - Too many Redirects I have an App hosted on Heroku, Domain and DNS Target is <appname>.herokuapp.com, as usual. My 1and1 Domain <domain>.net is set up to

@Sue5673885

Posted in: #1and1 #Dns #Domains #Heroku

I have an App hosted on Heroku, Domain and DNS Target is <appname>.herokuapp.com, as usual.

My 1and1 Domain <domain>.net is set up to HTTP-redirect to <domain>.net. I added the www subdomain which has the CNAME Alias <appname>.herokuapp.com.

This should work, at least i've read about this "workaround" in several threads on Stackoverflow / Webmasters.

However, accessing either <domain>.net or <domain>.net leads to a "Too many Redirects" error.

There are no .htaccess files on the entire associated 1and1 webspace if that matters. The Heroku app is written in Node.js and works fine when accessed via the Heroku Domain. How can i resolve this?

Edit:

These are the DNS Settings:

Root - <domain>.net

Nameserver: 1&1 Nameserver (Default)
A/AAAA Entry (Ip address): 1&1 IP-Address (Default)

Subdomain - <domain>.net
DNS Settings: CNAME - Alias: <appname>.herokuapp.com

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Sue5673885

1 Comments

Sorted by latest first Latest Oldest Best

 

@Odierno851

The < appname >.herokuapp.com target is doing virtualhosting (hosting multiple domains on one IP) and your space is configured to serve requests for < appname >.herokuapp.com but since you made a CNAME of < domain >.net pointing to it, the target is getting a request for < domain >.net and unless the target is specifically configured to do something for that hostname, it will not work as expected.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme