My django site cannot be loaded by just typing in example.com or https://example.com I have to fully type https://www.example.com
Does anyone know why this may be? I thought it might have to be related to the SSL certicate but that all seemed fine.
The domain is hosted with Godaddy and I am using Pythonanywhere.com to deploy my django site.
Related
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.
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
I'm using Amazon Web Services, and have a windows server running IIS.
Within IIS I have the default website, and another website:
I have an Elastic Load Balancer setup in Route 53 my DNS records point to the load balancer:
If I browse to http://mydomain.co.uk - it goes to the correct website in IIS.
If I browse to http://www.mydomain.co.uk - it goes to the Default website in IIS.
Is there any way I can point both www and non-www to the same website in IIS? Are my DNS records setup incorrectly?
Thanks for any help,
Mark
If both DNS records are resolving to the correct ip address of your server, then all you should need to do is setup multiple bindings on the correct website - one for www and one for the naked domain.
MY guess is that there is no IIS binding for the www, so it is resolving to the 'Default' site instead - you fix this in IIS console, not AWS console.
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
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.