1

Hi I registered a domain name on "Europe Registry", it's a .eu domain name.

I tried to edit the DNS section of my account on Europe Registry and managed to establish a 301 permanent redirect to myapp.herokuapp.com which worked fine.

However I'd like to be able to log on to my original .eu domain name, without being re-directed to Heroku if that makes sense.

The address bar, would still show www.mydomain.eu but obviously the content would be served from heroku.

How do I accomplish this? Is it by using a CNAME?

holografix
  • 111
  • 2

1 Answers1

1

Yes, you would use a CNAME to myapp.herokuapp.com.

Additionally, you have to tell Heroku to accept the custom domain as valid, basically by running something like:

$ heroku domains:add www.mydomain.eu

to your app.

Documentation can be found here: Heroku Custom Domains

cjc
  • 24,533
  • 2
  • 49
  • 69
  • Hey CJC thanks for your answer. At the moment I have HOST-TYPE-CONTENTS as: www.myapp.eu CNAME myapp.herokuapp.com. However a host www.myapp.eu returns a " not found: 3(NXDOMAIN) " – holografix Dec 27 '12 at 13:47
  • pic.twitter.com/cmz0MQKy – holografix Dec 27 '12 at 13:49
  • That's a question for your DNS provider. – cjc Dec 27 '12 at 15:32
  • Thanks once again for your help CJC. The CNAME is finally working, however I can still access myapp.herokuapp.com. Anyway to keep users from accessing it on that URL and only allow them to access wwww.myapp.com? – holografix Jan 01 '13 at 10:20
  • Not to my knowledge. myapp.herokuapp.com is always accessible. You can't keep people from going there, but you certainly don't need to publicize it, and I don't think anyone will really care. – cjc Jan 01 '13 at 15:29