Answer the question
In order to leave comments, you need to log in
How to setup GoDaddy CNAME for pythonanywhere?
Good day, tell me please, maybe someone came across this.
Registered a domain with a GoDaddy registrar and hosted on pythonanywhere, created a webapp on the domain (example.com without www), got a CNAME and go to DNS setup with a domain registrar, create a CNAME record for a host (www) that points to webapp-xxxxxx.pythonanywhere.com , then record A (host @) specify IP (nslookup webapp-xxxxxx.pythonanywhere.com).
As a result, when requesting example.com, it displays as it should, and when requesting www.example.com, it displays “Coming Soon!”
A (301) redirect from www.example.com to example.com does not work the same as CNAME www to @.
How to make a site with www displayed the same way as without it?
PS When creating a webapp with the www.example.com domain and specifying the CNAME on GoDaddy, the site works fine when requesting www.example.com, and without www it says “Coming Soon!”
Answer the question
In order to leave comments, you need to log in
If the "pythonanywhere" interface does not provide for the creation of an alias for the webapp, then I think there is no way without creating an incident in support of "pythonanywhere". Because the webserver specifies "alias" for your webapp, and the webserver does not expect "www.example.com" in the headers. So "coming soon!" it will issue any of your name w1.example.com/w2.example.com/www.example.com... (i.e. you can start them all, but the result will be the same without the intervention of the hosting administrator)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question