IIS7下面默认HTTPS绑定是无法指定主机头的,但我们可以通过手工修改IIS配置来实现主机头绑定。


打开C:\Windows\system32\inetsrv\config\applicationHost.config


定位到如下位置:
<bindings>
<binding protocol="https" bindingInformation="*:443" />
<binding protocol="http" bindingInformation="*:80:abc.demo.com" />
</bindings>


找到https的配置项目,修改为:

<binding protocol="https" bindingInformation="*:443:abc.demo.com" />


注意这里的abc.demo.com要换成你自己的域名,之后保存即可。

相关文章:

  • 2022-12-23
  • 2021-10-01
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-14
  • 2022-12-23
  • 2021-06-03
  • 2021-12-12
  • 2022-12-23
相关资源
相似解决方案