Forums

CNAME points to _my_ PA webapp...but returns a PA "coming soon" page

I have spent hours on the instructions on how to change CNAME to point to my webapp, but: What am I doing wrong here: My Hello World Flask Webapp is working: Hello World Webapp My CNAME points to my webapp: enter image description here But when I access the external subdomain that points to my webapp, it returns a page from PA - but apparently a page from a non exisitent webapp enter image description here It seems the CNAME isn't pointing to the correct webapp - but... What am I missing? I am hosting with IONOS if that is important... Thank you!

Web app name has to match the domain name. Your web app name is joschmaltz.pythonanywhere.com, not api.americactive.com.

Thank you - but I don't understand: The CNAME record for api.americactive.com points to joschmaltz.pythonanywhere.com so when I access api.americactive.com I should be directed to joschmaltz.pythonanywhere.com, no?

Yes, but the Host header of request is api.americactive.com so when it hits our system we try to send it to api.americactive.com web app that does not exist so our system returns 404.

Thanks again, I really feel stupid now, but how can I fix it such that api.americactive.com points to joschmaltz.pythonanywhere.com? How can I change the "host header" ? See the cname settings with ionos attached enter image description here

You'll need to change the name of the site on the "Web" page inside PythonAnywhere, and then it will display a CNAME value for you (it will look something like webapp-1234.pythonanywhere.com. Once you've done that, you can update your CNAME record so that the "Zeigt auf" field is that value, and you'll be all set.

(For clarity -- to change the name on the "Web" tab, click the pencil icon next to the name that it has right now.)

Thank you!

I hope you made it work!