Heroku custom domain from hostgator - django

I have a django application that I launched with heroku. I have a challenge of adding my custom domain to change the www.example.heroku.com to www.example.com. I got my domain with hostgator and I have changed the cname to point to www.example.com.herokudns.com. but after 48 hours I am unable to use www.example.com and I contacted my domain provider which is hostgator but I was told I needed nameserver which is not provided by heroku. I am confused at this point as this is my first time of trying a custom domain with an heroku application

Heroku doesn't use nameservers. All you can do is point the CNAME in hostgator to your heroku app which is something along the lines of :
myapp.herokuapp.com
Double check that it is the right app domain.
You also need to add your custom domain to the heroku project through the heroku dashboard: https://devcenter.heroku.com/articles/custom-domains

Related

Subdomain didn't send any data | ERR_EMPTY_RESPONSE | Heroku

I'm trying to connect my Heroku App via a custom GoDaddy subdomain. The subdomain is "subdomain" (for the sake of example). What I'm doing is, copying the DNS Target from Heroku and adding it in GoDaddy as a CNAME such that it is pointing to the DNS Target given by Heroku. Nonetheless, I'm getting the following error when going to www.subdomain.mysite.org
I have previously created subdomains and connected them to GoDaddy with the DNS Target that Heroku provides. Don't know what I'm doing wrong. I tried to refresh the DNS but it's not working.

GoDaddy custom domain hosted with Heroku throwing privacy error

I'm having trouble getting the custom domain I bought from GoDaddy to work with the Django app I have hosted on Heroku's free dyno. The Heroku app is accessible from the custom domain, however, I keep getting a privacy error from chrome. See below:
My Heroku dashboard confirms that I have added my custom domain. I have tried doing this through both the CLI and GUI, with no different results.
My DNS settings on my domain in GoDaddy are configured as follows. Someone had mentioned the CNAME setting should be the .herokudns domain generated by the addition of the custom domain in the Heroku dashboard, but when I make that change the website is not accessible at all. The Heroku app is named:
desolate-basin-60228 and can be accessible at https://desolate-basin-60228.herokuapp.com/
and in GoDaddy I have confirmed that my forwarding is set to http (not https as I don't need a security cert. for this site):
I also thought that it may be an issue with my Django settings.py file. So I adjusted any line with mention of https. This did not have any effect.
Does anyone have any thoughts on what I'm missing here?
Based on this Heroku help center resource, if your site needs SSL support, then it's not possible to set up a GoDaddy domain with Heroku. That could explain why you're having trouble.
However, there may be a few workarounds:
https://domainpromo.com/1831/godaddy-heroku-setup
https://medium.com/#successengineer/how-to-setup-heroku-with-godaddy-d8e936d10849

Adding a domain to a django webapp running on digital ocean

I have a Django Web App that is currently live on digital ocean with an IP address say w.x.y.z, I have also bought a domain name say example.com, how can i add this to my app so that, when i go to example.com , I get to my website which currently is only accessible through the IP. Any advice is appreciated. I'm new to this
Buy/Register your Domain Name with Domain Name providers.
You need to mention your IP in your DNS Management side at Domain Name service providers.
At Django Side - you just make sure to add your Domain Name into settings.py file, in ALLOWED_HOSTS
And you are done!

Heroku free SSL for paid dynos not working on "old" app

I have a django app created before the announcement of free SSL Dynos on Heroku.
I followed throught the tutorial here
> heroku certs:auto:enable
Enabling Automatic Certificate Management... done
=== Your certificate will now be managed by Heroku. Check the status by running
> heroku certs:auto
=== Automatic Certificate Management is enabled on codetiger
Domain Status
──────────────── ───────
www.site.com Failing
site.com Failing
=== Some domains are failing validation, please verify that your DNS matches: heroku domains
When I run the heroku domains command, it shows me the following
=== codetiger Heroku Domain
codetiger.herokuapp.com
=== codetiger Custom Domains
Domain Name DNS Target
──────────────── ──────────────────────────────
www.site.com www.site.com.herokudns.com
site.com site.com.herokudns.com
And the
Type Hostname Value TTL (seconds)
CNAME www.site.com www.site.com.herokudns.com 43200
CNAME *.site.com site.com.herokudns.com. 1800
Even after doing all that, when I run heroku certs:info I only see
site has no SSL certificates
What can I do for it to work?
As a test, can you remove the wildcard CNAME? Seems like Heroku does not support that currently.
ACM does not support applications that have wildcard custom domains.
Any other flags in those Known Limitations that might help?

heroku deployment - issue with www

I have deployed my django app "myapp" to myapp.herokuapp.com
I own a domain www.example.com with godaddy
I have setup CNAME in my godaddy domain (www.example.com) to point to myapp.heroku.com
I have also added example.com and www.example.com as custom domains to my heroku app.
But, as of now, I am getting the app only at www.example.com and not at example.com(without www)
www.example.com gives me the default godaddy parked page.
What is the issue? How can I solve this?
It is not possible to set a CNAME for the root example.com.
Even if it were possible, you probably wouldn't want to do it, since it would be saying "use the mail settings for myapp.heroku.com for example.com.
You would usually just set an A record for the root domain, but this is not possible because of heroku's dyamic routing.
The heroku docs suggest that you set an ALIAS or ANAME record (these are custom record types, dependent on your DNS provider), or set up a subdomain redirection from example.com to www.example.com See the root domain section of the custom domains page on the heroku devcenter for more info.