Configure CNAME for a heroku app with subdomains - laravel

Currently i have an app on Heroku with a wildcard subdomain working like this:
client1.myapp.com, client2.myapp.com, ...
This is working fine.
Then, i'd like that each client can access this apps using their own personal domains. So, testing this on my personal domain, i would like to configure test.mydomain.com like this:
CNAME test --- client1.myapp.com
But, this is not working yet. I keep getting the heroku error 'No such app, There's nothing here, yet.'.
Not sure what i am missing. Is it a problem related to my actual Laravel app? Heroku config? DNS?
Thanks in advance for any help.

Assuming your application will provide an hostname for each client (actually, it would probably be preferable to have a single hostname as in any case it looks like they will all point to the same Heroku app), then you have to complete all these tasks in order to make it work:
Add the subdomain client1.myapp.com as domain attached to the Heroku app
Configure the DNS record for client1.myapp.com
Ensure client1.myapp.com resolves (dig client1.myapp.com)
Add the customer subdomain/domain to your Heroku app, otherwise Heroku will reject routing the requests for that domain
Configure the DNS record for the customer subdomain/domain to CNAME client1.myapp.com
Ensure the customer subdomain/domain resolves
According to your issue description, I assume you probably did not configure the customer subdomain/domain as domain to your Heroku app.

Related

Heroku Custom Domain Not Found (404)

I want an application hosted one heroku to be reachable through the api subdomain.
The issue is that when i reach the website, I get a Not Found error message. Calling the url has no impact on the logs so I know the application is not reached.
By reading other issues on stack overflow, I can see that many people did not properly add the custom subdomain but I don't think that's the issue here. I created the subdomain through heroku's web interface.
If I run this in my terminal
$ heroku domains -a myapp
I get the following result
=== stickyhabitsapi Heroku Domain
myapp.herokuapp.com
=== stickyhabitsapi Custom Domains
Domain Name DNS Record Type DNS Target
api.stickyhabits.app CNAME mydnstarget
The DNS is managed by netlify. With their interface, I created a CNAME pointing to the DNS target supplied by heroku. Any Idea what might have gone wrong ?

GoDaddy domain not pointing to Heroku app

I'm trying to point my GoDaddy domain to Heroku app. I followed the steps given here: https://devcenter.heroku.com/articles/custom-domains#add-a-custom-root-domain but I'm unable to access my Heroku app. Here are my DNS records settings:
Can someone tell me where I'm going wrong?
cname only allow you to point subdomain, so this case you should be able to see www subdomain pointed to Heroku, can you try to remove the A record.
I would recommend using DNS service like DNSimple/Cloudflare or in case you don't want to go out of Heroku you can try pointDNS

How to customize the domain name of godaddy in heroku app

I have successfully added my domain name of go daddy into my Heroku app .. but DNS target is getting something else . I have changed target in go daddy but still It is not showing the correct one . please help me out
Please read the Heroku doc on custom domain names.
Make sure you've done all of the steps below, and remember there can be a delay before DNS changes are noticeable.
Confirm that you own the custom domain name.
You can buy a custom domain name with a domain registration service.
Add the custom domain to your app with the heroku domains:add
command.
Look up the Heroku-supplied DNS target for the custom domain using
the heroku domains command.
Configure your app’s DNS provider to point to the Heroku-supplied
DNS target.
Confirm that your app is accessible via the custom domain.
There might be a delay while DNS changes propagate.

Not able to redirect domain in Heroku (DNS)

I'm having hard times trying to redirect a custom domain on Heroku, have you guys had the same problem?
Configured custom domain on Heroku (already tried different variation):
The server asks for Server Name, so I add the only thing Heroku returns as the DNS:
Below there are two domains, the first says "servfail" (the current app domain), the second "nxdomain", which I've just bought it's fine.
Any advices? Should I deploy on another server? Thanks for the help!
You need to update the DNS servers of your domain fariba.cl to fariba.cl.herokudns.com at the domain registrar's end (from where you purchased the domain)
After that it will work fine.
For those facing DNS redirecting problems in Heroku, I suggest this Add-on that you can add to your app in Heroku (for free): PointDNS
With it you can get many types of adresses, including IP and/or n1.server n2.server and so on, in which you can add the address to your domain settings.

Heroku: Proper way to assign a domain in your app

its first time i am working with heroku on a project and i have to assign a domain to the app, so the application can run properly from the domain i have instead of heroku subdomain. Is there any Nameserver( dns addresses) i can give to my domain and get assigner or its only works with domain mapping? thank you.

Resources