How to set up your own domain in Heroku?

2

I bought a domain and I need to configure it with my application that is in Heroku. How to do this?

    
asked by anonymous 14.05.2014 / 16:24

2 answers

2

To configure the domain of your application, it is directly in the application settings and accessing the "Domains" section. Looking at the documentation ( custom-domains ). It ensures that requests made to the custom address and pointing to the address of your application in heroku ( xxxxxx.herokuapp.com ) are met.

You will have to set up a CNAME or ADDRESS (CNAME is more reliable since your heroku domain never changes, IP can change depending on Heroku policy) of the domain you want to xxxxxx.herokuapp.com in your DNS provider.

I just ran a test: in the "Domain" options, enter only the address without www , for example: nome_do_domino.com . At your DNS provider, create a CNAME record of nome_do_domino.com pointing to nome_da_aplicacao.herokuapp.com . In a short time the address is accessible.

    
14.05.2014 / 16:59
0

The problem is that the naked domain (xxx.com.br) can not be a CNAME. What can be done is 1) Create a CNAME from www.xxx.com.br to application_name.herokuapp.com 2) Place an A entry pointing to 174.129.25.170

This IP is from a service that redirects domains without www to www.domain, more details at this URL:

link

    
12.04.2017 / 13:40