IIS https绑定有时消失

问题描述 投票:4回答:1

我在开发计算机上具有IIS,并且托管默认的asp.net 4.5网站和.NET核心应用程序。

应用程序配置为仅通过https运行。有时,没有任何模式,“ https”将从配置列表中消失。在这种情况下,我会手动添加它,但这确实很烦人。

有什么线索可以一直删除此绑定吗?

enter image description here

asp.net visual-studio iis iis-8
1个回答
1
投票

打开launchSettings.Json并将iis的sslPort设置为443

  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iis": {
      "applicationUrl": "http://localhost/",
      "sslPort": 443
    },
    "iisExpress": {
      "applicationUrl": "http://localhost:54633",
      "sslPort": 0
    }
  },
© www.soinside.com 2019 - 2024. All rights reserved.