0

我部署了一个 Azure 应用程序,我想对整个应用程序使用 SSL。

要保护我的应用程序:

-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.

现在这就是问题出现的地方。当我输入我的网址(带有子域)时,找不到该页面。但是,如果我在 url 中手动输入 https:// ,它将按应有的方式转到该站点。

这里发生了什么?我只打开了一个 https 端点。我需要一个 http 端点吗?如果我这样做,我不能让用户在没有加密的情况下使用该应用程序,那么我将如何解决这个问题?

感谢您的帮助!

4

1 回答 1

1

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)

于 2012-01-28T20:42:50.993 回答