Microsoft Azure SSL配置

时间:2017-08-15 14:22:25

标签: .net azure ssl dns azure-hub

我正在尝试使用Microsoft Azure托管,Azure中的SSL和superhosting.bg提供的域在站点上设置SSL证书。使用.NET MVC 5和SQL Server for DB的站点

在Azure环境中,我有SSL sertificate

azure ssl setup

在web.confing文件中我有

  <system.webServer>
    <rewrite>
      <rules>
        <!-- BEGIN rule ELEMENT FOR HTTPS REDIRECT -->
        <rule name="Force HTTPS" enabled="true">
          <match url="(.*)" ignoreCase="false" />
          <conditions>
            <add input="{HTTPS}" pattern="off" />
          </conditions>
          <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent" />
        </rule>
        <!-- END rule ELEMENT FOR HTTPS REDIRECT -->
      </rules>
    </rewrite>
  </system.webServer>

我的问题是公司为我提供了域名,我需要设置哪些值才能正常工作?

domain firm settings

1 个答案:

答案 0 :(得分:0)

配置基于IP的SSL后,Azure Web App将为您的Web应用程序创建一个新的专用IP地址。请打开您的网络应用程序的自定义域页面以获取最新的IP地址并重新映射它或您的A记录。

此外,我发现还有一个额外的&#39;&#39;在你的CNAME记录绑定结束时。

mebellete.azurewebsites.net.

请将其更改为

mebellete.azurewebsites.net
相关问题