2

I have hosted a static website in azure mainly by following the Microsoft tutorials. The process has been to create a storage account, create a CDN endpoint, map my custom domain to the endpoint and then enable HTTPS using an SSL certificate managed by azure.

The custom domain is working but the problem is firstly that although in Azure CDN it says that both HTTP and HTTPS are enabled, I can only access the website via HTTPS and when I try with HTTP the error I get says 'The account being accessed doesn't support HTTP'. The other thing is that in order to navigate to the secure site I have to put the entire URL in the search bar, starting with the https or the website can't be found. I'm not sure if this is normal but if I think of web browsing in general, this isn't usually necessary.

Any ideas on how to fix this would be greatly appreciated.

hb115
  • 21
  • 3
  • check your TLS/SSL settings on the App Service, default is HTTPS only – Daniel Björk Jul 31 '20 at 08:30
  • 3
    Great thanks!! This solved the problem perfectly. Just in case anyone has the same issue you have to select the storage account then on the side menu choose configuration and check the secure transfer required setting. – hb115 Jul 31 '20 at 08:54
  • I added a proper answer to your question. – Daniel Björk Jul 31 '20 at 08:57

1 Answers1

4

Default is that Azure only Allows HTTPS.

On App Service go to TLS/SSL settings and switch to HTTPS Only to Off.

On Storage Account go to Configuration and change Secure transfer required to disabled.

Daniel Björk
  • 2,475
  • 1
  • 19
  • 26
  • but this seems to open up http requests. Am I missing something or do we have to open up for http requests in order to not get that error? – Yannick Widmer May 31 '23 at 11:51