Home > Back-end >  How i can link my domain to my Heroku app?
How i can link my domain to my Heroku app?

Time:07-06

I have free domain from freenom.com. I create custom domain in app settings on Heroku and setup given me 'DNS target' on my domain DNS settings on Freenom. But even after several days, website not accessible via my domain. What am I doing wrong?

Domain from freenom.com:

Custom domains on Heroku:

DNS settings on Freenom:

Website doesn't work:

CodePudding user response:

You should add an A-record for your domain[1] pointing to your website's server IP address on freenom's DNS management page.

[1] urlcuter.tk

CodePudding user response:

This isn't DNS issue.

The browser error message shows that you are trying to access the site over HTTPS (not HTTP), and is displaying an SSL error. Have you set up a certificate for your custom domain, e.g. via Automated Certificate Management (ACM)?

Modern browsers often default to HTTPS, and it even looks like you have set up a redirect from HTTP to HTTPS. You'll need a certificate to make that work. ACM, as noted above, is the simplest solution but it does require that you are using a paid dyno on Heroku.

You can also bring your own certificate if you prefer.

  • Related