0

1) I have an app on heroku.com, code-w.herokuapp.com (works fine). 2)I have a domain, that I bought: gamakers.org. 3)I have done all that described in here: https://stackoverflow.com/questions/14125175/setup-heroku-and-godaddy

4) I have got no result. When I open gamakers.com, it says:

This website is temporarily unavailable, please try again later.

Meanwhile, I can see my favicon is loaded. Next when I open www.gamakers.com, it says:

Bad Request (400).

P.S: I discussed the problem on GoDaddy with their support, they said: If Heroku can't give you static IP of the site, we can't help you. But documentation on heroku.com says, we DO not use static IP for our apps, we use only URL. So, I took my url from Heroku CLI and put it on Godaddy. No results. Please, who has heroku + GoDaddy site working fine right now, help me. Thanks.


UPDATE I tried what you said(thanks to all)but - no results. Here are my settings on screens below: my results (BAD request 400) My heroku dashboard dns urls my Godaddy DNS settings my Godaddy forwarding

+1 UPDATE: Thanks for your help, obviously GoDaddy now is working along with heroku DNS, because I can see all logs appearing in my Heroku logs. Now it's time to ask question on Heroku.

6
  • Check your app logs. The www.gamakers.com domain points as CNAME to code-w.herokuapp.com correctly. Probably your app isn't configured to handle your www.gamakers.com domain. – AlexD Apr 26 '18 at 17:56
  • I have checked the logs, here are no any requests, whileas I do them.. In my app I have this: gamakers.org ALIAS or ANAME gamakers.org.herokudns.com www.gamakers.org CNAME www.gamakers.org.herokudns.com – Nickey Production Apr 26 '18 at 18:05
  • When I do dig www.gamakers.org it returns CNAME code-w.herokuapp.com. – ceejayoz Apr 26 '18 at 18:14
  • (I do show you put a redirect from non-www to www successfully, though.) – ceejayoz Apr 26 '18 at 18:15
  • The "Bad Request (400)" appears to be coming from Heroku. – Michael Hampton Apr 26 '18 at 20:00
2

First, you need to set up the non-www variant of the domain to the www variant. GoDaddy has something for this (just make sure you're doing it only to the non-www record): https://ph.godaddy.com/help/manually-forward-or-mask-your-domain-or-subdomain-422

Second, you can't just CNAME to your app's herokuapp.com subdomain. You need to add the app in your app's Settings in the Heroku dashboard, then CNAME to the specific address you're provided with there.

It'll look like this:

enter image description here

That www.gamakers.com.herokudns.com is what you want to put as the CNAME's value. Don't just use what I got - they may give you a different target value, I don't know.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.