【问题标题】:Azure App Services Enforce HTTPS for only for one/specific custom domain/sAzure 应用服务仅对一个/特定的自定义域强制执行 HTTPS
【发布时间】:2018-06-15 08:08:05
【问题描述】:

我有一个 Azure 应用服务,它映射了多个自定义域。当我从 SSL 配置强制执行 HTTPS 时,它应用了所有自定义域。

有没有办法只对一个/特定的自定义域强制执行 HTTPS?

【问题讨论】:

    标签: azure https azure-web-app-service custom-domain


    【解决方案1】:

    似乎我们不能只对一个/特定的自定义域强制使用 HTTPS。

    当我在 Azure 资源浏览器 中查看httpsOnly 时(您可以在门户的开发工具 中访问它),该属性适用于整个网络应用程序,我们无法将其设置为特定域。

    {
      "id": "/subscriptions/xxxxxx/resourceGroups/joywebapp/providers/Microsoft.Web/sites/joywebapp2",
      "name": "joywebapp2",
      "type": "Microsoft.Web/sites",
      "kind": "app",
      "location": "Central US",
      "properties": {
          ........
         "httpsOnly": true
       }
    }
    

    【讨论】:

      【解决方案2】:

      现在 Azure 应用服务可以选择仅对一个/特定的自定义域强制使用 HTTPS:

      Azure 门户 > 应用服务 > 单击 webapp > 设置 > 自定义域

      在本节中将HTTPS only 设置为On

      【讨论】:

        猜你喜欢
        • 2021-11-29
        • 2022-01-08
        • 1970-01-01
        • 2023-04-05
        • 1970-01-01
        • 1970-01-01
        • 2019-12-13
        • 2020-07-04
        • 2022-06-27
        相关资源
        最近更新 更多