Custom subdomain with a SSL not redirecting to Azure cloudapp

351 Views Asked by At

I have an Azure app deployed and I want to use SSL for the entire application.

To do secure my app:

-I made a subdomain in my site to point to the Azure application.
-I got a SSL in the name of my subdomain
-Add the certificate to the applicaton
-Loaded the certificate to the Azure hosted account
-Opened up a https endpoint in the application.

Now this is where the problem comes up. When I enter in my url (with the subdomain) the page can not be found. However, if I manually enter in https:// in the url it will go to the site as it should.

What is going on here? I have only a https endpoint open. Do I need a http endpoint to? If I do, I can't let the user use the app without an encryption, so how would I solve that?

Thank you for the help!

1

There are 1 best solutions below

2
On

I believe that this is not a specific Azure problem. When typing in URL w/o the https://, browsers automatically assume the http:// protocol and pre-pend it. Since you did not open the http endpoint, you're getting error when connecting.

Suggestion: open the http endpoint. Redirect/rewrite the URL to https upon the connection to the http endpoint. How to do this, depends on the technology you're using to develop your site in. (ASP.NET, MVC, etc)