Heroku custom domain name

domain-namedomain-name-systemheroku

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?

Best Answer

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

Related Topic