Forums

Subdomain Support

Is there documentation anywhere for setting up an app on a subdomain?

I have a flask app i'd like to put at test.domain.com rather than at www.domain.com or .domain.com, just couldn't find proper docs for it anywhere.

I've actually done that... but I can't remember how...

When you create the web app, just enter "test.domain.com" instead of "www.domain.com". If you want to move an existing app from "www.domain.com" to "test.domain.com", these instructions should help.

On the DNS side, you'll also need to create a new CNAME at your registrar for the subdomain -- just like you would for a website starting www, you'll need it to point to yourusername.pythonanywhere.com