Forums

HTTPS certificate, reverting from custom domain to pythonanywhere domain

Hi,

I have successfully set up my own domain for my web app and installed the https certificiate using the instructions at http://help.pythonanywhere.com/pages/SSLOwnDomains.

This works, i.e. I can use https to access my web app using my own domain.

However I have a (temporary) requirement to revert to providing https access using the old pythonanywhere.com domain.

I have set the name of the web app back to its original pythonanywhere.com name on the Web tab and restarted it.

This allows http access, but https access fails because it gets the certificate I installed for my own domain rather than the certificate for pythonanywhere.com.

How do I revert to the pythonanywhere certificate?

Hmm, that's a great point -- there is currently no way to do that. That needs fixing, and I've raised a high-priority ticket.

For now, the only way you can get the certificate cleared and returned back to the PythonAnywhere one is to email us -- I see that your site is currently on a custom domain, so I haven't done that for now, but drop us a line once the site is on the pythonanywhere.com subdomain and we'll sort it out.

I've managed work around my requirement to revert to the pythonanywhere.com domain.

An automated process was trying to access the site at the pythonanywhere.com domain and the easiest way to tell it to switch to the new domain was to tell it when it accessed the old domain, but since it couldn't access the old domain...

Anyway I was able to update the process another way so the problem is resolved.

It might be helpful in general if there could be an option to make a site available at the original pythonanywhere.com domain as well as a custom domain.

I don't know if there are any technical difficulties with doing that.

We do have a plan to do something like that in the future; no ETA yet, however.