: 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
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
More posts by @Sue5673885
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.