I'm just trying to host a static website on a custom domain.
So far, it seems like I'm on step 477 out of 653 trying to accomplish this on Azure.
So, I've...
- Created a storage account
- Activated "Static website" under capabilities
- Uploaded Files
- Checked to see that they're served! They are! But only
http
. CDN required for https. - Added a CDN endpoint
- Checked to see that the CDN works! After a couple minutes, IT DOES! YAY!
- Added a custom domain (which doesn't tell you you need to do a CNAME from cdnverify.[domain] to cdnverify.[cdn name].azureedge.net, but... after doing it, it let me add it)
- Checked to see that the domain serves! Well, sure but with giant warnings in the browser because it's an invalid certificate
- Start adding a "Custom HTTPS"
And at this point, I have two options:
Option #1: Let Azure handle it for me. Except it doesn't work. It complains that apex domains aren't supported. Apparently they used to be, but they decided "nah".
Option #2: Manage certificates manually
Which means I have to remember every 3 months for the rest of my life to manually renew and upload certificates...
Am I missing an easy option here?
It would seem to me that Azure static websites are unusable except in insecure contexts or with a lot of manual work. I could see redirects as a possible solution, but I don't think it actually works:
http://example.com
could redirect to https://www.example.com
(or be hijacked since it's insecure)
https://example.com
can't redirect because the certificate is invalid
But it seems like such a common thing that I must be blind to the solution, missing something obvious?
Help :)