Heroku Configuration - DNSimple

Trying to configure SSL to work on mydomain.com. After Heroku documentation, I managed to get SSL working at https://secure.mydomain.com . However, the actual endpoint created by heroku when I added SSL still says

**Heroku | No such app** There is no app configured at that hostname. Perhaps the app owner has renamed it, or you mistyped the URL. 

I am a little confused about how I can get tokyo-2121.herokussl.com to point to my actual Heroku app.

 emet:myapp vezu$ heroku certs Endpoint Common Name(s) Expires Trusted ------------------------ --------------------- ------------------------ ------- tokyo-2121.herokussl.com secure.mydomain.com 2013-09-09 12:28:05 CEST True 

Then

 emet:myapp vezu$ heroku certs:info Fetching information on SSL endpoint tokyo-2121.herokussl.com... done Certificate details: subject: /serialNumber=htilpsjjgrrlhyVZ8rbeandz78555bgpWx/FDEVd/OU=GT166968518/OU=See www.rapidssl.com/resources/cps (c)12/OU=Domain Control Validated - RapidSSL(R)/CN=secure.mydomain.com start date: 2012-09-06 12:38:54 CEST expire date: 2013-09-09 12:28:05 CEST common name(s): secure.mydomain.com issuer: /serialNumber=htilpsjjgrrlhyVZ8rbeandz78555bgpWx/FDEVd/OU=GT166968518/OU=See www.rapidssl.com/resources/cps (c)12/OU=Domain Control Validated - RapidSSL(R)/CN=secure.mydomain.com SSL certificate is verified by a root authority. 

I assume this means that I have set SSL correctly. My dnsimple configuration looks like this:

 Type Name TTL Points to ALIAS mydomain.com 3600 proxy.herokuapp.com CNAME secure.mydomain.com 600 tokyo-2121.herokussl.com CNAME www.mydomain.com 3600 proxy.herokuapp.com MX mydomain.com 600 mx00.1and1.co.uk (P:10) MX mydomain.com 600 mx01.1and1.co.uk (P:20) 

How to get tokyo-2121.herokussl.com endpoint to communicate with my application? Should I add it anywhere in the application?

+4
source share
1 answer

It looks like you configured the SSL endpoint correctly, but did not tell Heroku which domain you will use. This error message actually comes from inside Heroku, which means that when you enter the host name, you are directed to the right place, but Heroku does not recognize the host name and therefore cannot determine which site to serve.

You need to take a look at the heroku domains command.

You can list domains using:

 heroku domains 

If the domain does not appear in the list, you need to add it. You can do this using:

 heroku domains:add secure.mydomain.com 

This will add a domain to your Heroku application so that Heroku servers serve your site for any requests for this hostname.

+14
source

Source: https://habr.com/ru/post/1432989/


All Articles