Heroku - DNSimple configuration - heroku

Trying to set up SSL to work on mydomain.com. Following Heroku documentation I have managed get the SSL working on https://secure.mydomain.com. However actual endpoint created by heroku when i added the SSL is still saying
**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 as to how i get the tokyo-2121.herokussl.com to point to my actual application on Heroku.
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 that this means i have installed the SSL correctly. My dnsimple config 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 the endpoint tokyo-2121.herokussl.com to link to my app? Should i be adding it anywhere on my app?

It sounds like you've configured the SSL endpoint correctly but not told Heroku what domain you will be using. This error message is actually coming from within Heroku meaning that when typing the hostname you're being directed to the correct place but Heroku doesn't recognise the hostname and therefore cannot determine which site to serve.
You need to take a look at the heroku domains command.
You can list the domains using:
heroku domains
If the domain does not appear within the list then you will need to add it. You can do this using:
heroku domains:add secure.mydomain.com
This will add the domain to your Heroku app so that the Heroku servers serve your site for any requests to that host name.

Related

Trouble connecting domain name to Heroku app

I have bought a domain name with Porkbun.com, I have added that domain to my herokuapp domains and received a DNS target. I have added an ALIAS record with host: 'mywebsite.domain' and target as the DNS target I received from Heroku.
When trying to access the domain I get 'bad Request (400)' error. I have then tried these three separate steps:
As instructed by Porkbun I added another ALIAS record with host: www.mywebsite.domain and target: 'mywebsite.domain'.
I deleted all the ALIAS records I had and added a CNAME record with host: 'www.mywebsite.domain' and target: 'mywebsite.herokuapp.com'.
Changed CNAME target to be the DNS record I received from Heroku.
In the three cases I receive a Heroku page saying 'There is nothing here' and titled 'no such app'.
Similar problem occurred to me yesterday when i tried to deploy a ghost app to heroku pointing to a custom domain name purchased through porkbun. After googling i found out that the IT TAKES ALMOST A DAY TO RESOLVE THE DNS POINTING TO THE CUSTOM DOMAIN in porkbun.
Solution
I changed the CNAME RECORD pointing to the herokuapp url;-"yourappname.heruko.com"
Add the host as WWW
You can also use ALIAS-CNAME RECORDING to point to the heroku app url.
heroku domains:add example.com
heroku domains:add www.example.com
heroku domains:add *.example.com
This is to point your domain name from heroku side
Check out this video its about connecting your domain name to godaddy. I think its the same way with porkbun youtube.com/watch?v=kKGSGT7mSnQ&t=75s
Please let me know if this does work for you

adding custom domain in heroku with big rock domain

I have a heroku app which i want to point to www.infoxpression.in
I added the domain name on heroku and added CNAME record in my bigrock DNS management but it is not working...
Big rock DNS management records:
Heroku dashboard:
Am i doing it wrong?
To connect your heroku hosting to big rock domain,
You have to open your big rock domain account and in the DNS Management page add in the cname the host: www and in the point to: your heroku url And in the heroku page in the settings add three domains:
1 *.xyz.com
2: xyz.com
3. www.xyz.com
This is to point your domain name from heroku side
heroku domains:add example.com
heroku domains:add www.example.com
heroku domains:add *.example.com
This should work :) Check this video https://www.youtube.com/watch?v=kKGSGT7mSnQ&feature=youtu.be
Please make sure that your bigrock account has default nameservers
like in the image:
Domain registration >> Name Servers
Do the domain forwarding as well.
Domain forwarding >> Manage domain forwarding >> add new
sub-domain prefix = (leave it blank if you have no subdomain)
destination URL = http://www.yourdoamin.com
URL masking is off
However, it will take 24-48 hours for updating.

Godaddy CNAME record does not work with heroku DNS target

I have bought the following domain www.rodrigoloza.com from GoDaddy. I have a Django application deployed in heroku https://rodrigo-blog-123456.herokuapp.com/
I wanted to add my www domain to my heroku app, so I edited the CNAME of my DNS and added the following information.
Type: CNAME
Name: www
Value: rodrigoloza.com.herokudns.com
TTL: 1 Hour
When I check heroku domains -a app_name I get that the domain name has been set to the DNS target www.rodrigoloza.com.herokudns.com but when I click on my domain I see the page cannot be found. I don't know what can be wrong.
Pd: I have waited for more than 48 hours so changes should have propagated by now.

How to generate a www LetsEncrypt certificate using laravel forge?

I provisioned a server using forge and set the domain to blog.example.com. And I generate a LetsEncrypt certificate for that server and set the site to run on http2. It was perfectly fine.
However, I need to make the server accessible via www.blog.example.com now. So I set a CNAME record to route www.blog to blog.example.com. But I got an error This site can’t provide a secure connection when I try to access the site via www.blog.example.com. So I try to generate a new certificate for www.blog.example.com but forge reply First domain does not match root domain on site.
How can I solve the problem?
Thank you.

Parse Server Custom Domain On Heroku

I have set up a Parse Server on Heroku, with an MLab MongoDB. Everything works fine, & when I visit https://myapp.herokuapp.com I see "Make sure to star the parse-server repo on GitHub!".
I can successfully perform API functions through my Postman Console, for example logging in via the following REST API call: https://myapp.herokuapp.com/parse/login?username=admin&password=password.
I can also perform other REST API POST, GET, etc. as you would expect.
I'm now trying to use my own domain "api.mydomain.net". In the Heroku App > Settings > Custom Domains, I have set domain to "api.mydomain.net" & "myapp.herokuapp.com" as the DNS target.
I've also added a CNAME record to the DNS pointing "api" to "myapp.herokuapp.com".
When I visit https://api.mydomain.net I see the "Make sure to star the parse-server repo on GitHub!" message confirming that the CNAME record works, however when I go to perform the same REST API Login call https://api.mydomain.net/parse/login?username=admin&password=password I get the response:
Could not get any response.
This seems to be like an error connecting to
https://api.mydomain.net/parse/login?username=admin&password=password.
What am I missing?
You are trying to securely connect to the Parse Server with https. So you have to add a TSL certificate for your Heroku app in the Heroku dashboard.
Open Heroku app in Heroku dashboard
Open Settings tab
In section Domains and certificates click Configure SSL and choose Automatically configure using Automated Certificate Management.
Click Add domain to add the domain from which the request should be forwarded, e.g. api.example.com.
On your domain registrar's website set the CNAME for api.example.com to the domain in the Heroku app settings, e.g. api.example.com.herokudns.com
Wait until the status of the domain in the Heroku dashboard is Done

Resources