Forums

Setting up a custom domain via Google Domains

I purchase a domain from Google Domains on July 8. My purchased domain has no subdomain (www) in front, but I adjust the setting so Google will redirect the user to correct destination URL whether they enter the “www” or not. However, I still get the “Coming Soon” page approximately a week later. Is there anything wrong with my setting?

Below is my setting on Google Domains:

Subdomain forward

fundamentaltrader.net → http://webapp-xxxx.pythonanywhere.com Temporary redirect (302), Do not forward path

Subdomain forward

www.fundamentaltrader.net → http://webapp-xxxx.pythonanywhere.com Temporary redirect (302), Do not forward path

Hi there,

You should setup a forward from fundamentaltrader.net to www.fundamentaltrader.net, and then setup a cname record (not forward) that points from www.fundamentaltrader.net to webapp-xxxx.pythonanywhere.com

Hi Conrad, Do I set it up like this? I tried all combination of redirect and forward/not forward path for the "Subdomain forward", but It still doesn't work

Subdomain forward

fundamentaltrader.net → http://www.fundamentaltrader.net Temporary redirect (302), Forward path

Subdomain forward

www.fundamentaltrader.net → http://webapp-xxxxx.pythonanywhere.com Temporary redirect (302), Do not forward path

The first one is correct. This is incorrect: www.fundamentaltrader.net → http://webapp-xxxxx.pythonanywhere.com Temporary redirect (302), Do not forward path

Your webapp is not directly hosted at http://webapp-xxxxx.pythonanywhere.com. It is just a server that serves the website from the given domain. You have to set the CNAME to http://webapp-xxxxx.pythonanywhere.com and not redirects.

These pages may help: https://support.google.com/domains/answer/3251147 https://support.google.com/domains/answer/3290350

Thank you EndenDragon, I remove the 2nd "Subdomain forward" and added the "Custom resource records" with the following config:

NAME: www

TYPE: CNAME

TTL: 1h

DATA: webapp-xxxxxx.pythonanywhere.com.

I reloaded my page, but now all I see is "Bad Request (400)". I added "www" in front of my domain name.

For the bad request, check your Pythonanywhere error logs and see if there is any typo in the code.

Ok, I changed Debug to True in my Django "settings" file, now my site is loading correctly, but is there going to be any security concern if I did that? Or is this just the way it's supposed to set up?

you should not set debug = true. instead you should look at what the error was and try to fix it (if it is saying you need to add stuff to allowed_hosts etc, then you should do that instead)

Thank you conrad, I added 'www.fundamentaltrader.net' to the list of allowed_hosts, and everything is working now:)

I have a similar problem which is two-fold. I am attempting to setup a google domain here: my first problem is that I keep receiving the "pythonanywhere coming soon" page. While on my pythonanywhere dashbord it says:"There is a problem with your domain name configuration. Take a look at the DNS setup section below for details. Be aware that DNS changes can take some time to propagate across the internet....". However, under DNS Setup it states "Your domain's current CNAME is ghs.googlehosted.com." In addition, on my google dashboard it shows the "python anywhere coming soon" page as evidence that the domain is being pointed in the right direction, perhaps?

The second part is that I am receiving a blank page for both the access and error logs. Though server log seems to be running fine though.

problem solved...partially. I found a short video on you tube "pointing google Domains to Heroku/Openshift/etc". Now I have data in the access and error logs that I can now debug.

If you're seeing "Coming soon" on www.yourdomain.com, it's most likely that you've named the website yourdomain.com on the "Web" tab and need to edit the website name to add in the missing www.

I used to have a site hosted at Google Domains. I changed the CNAME record and deleted the A records (was this a mistake?) The CNAME appears to have propagated all over the world, but the website called up is still the old site running on Google AppEngine. What should I do?

[EDIT] Fixed! It was actually working fine, but I had the old site stuck in my browser cache....

Ah, excellent -- glad you worked it out!

Hi, I'm having a similar, if not the same issue. On google domains, on DNS, I added the custom record : Host Name : www Type : CNAME TTL: 3600 Data: webapp-XXXX-pythonanywhere.com

On Website, I added Forward from: mydomain.com Forward to: http://www.mydomain.com Redirect Type: Temporary redirect (302) Path forwarding; forward path

More then an hour later, I'm still getting errors on the web app setup on pythonanywhere : "There is a problem with your domain name configuration. Take a look at the DNS setup section below for details. Be aware that DNS changes can take some time to propagate across the internet. The exact time they take will depend on your domain configuration, but it could be as long as a day. "

And

"Your domain's current CNAME is ghs.googlehosted.com. Check this help page for more information about how to set it up correctly.", and the help page didn't help me...

When I train to go to mydomain.com or www.mydomain.com I get an error from google : 404 : The requested URL / was not found on this server. That’s all we know.

Any help would be appreciated.

Take a look at https://help.pythonanywhere.com/pages/NakedDomains/

Hi, Thanks for your quick answer. I think that I was too impatient... It seems to be working correctly now.

Glad to hear that!