IIS实现HTTPS的主机名绑定

默认情况下,IIS中HTTPS 绑定是无法指定主机名的
解决办法:通过手工修改 IIS 配置来实现主机头绑定。打开如下位置的文件。

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

找到节点

<bindings>
    <binding protocol="net.tcp" bindingInformation="808:*" />
    <binding protocol="net.pipe" bindingInformation="*" />
    <binding protocol="net.msmq" bindingInformation="localhost" />
    <binding protocol="msmq.formatname" bindingInformation="localhost" />
    <binding protocol="http" bindingInformation="*:80:www.xxxxxx.com" />
    <binding protocol="https" bindingInformation="*:443:" />
</bindings>

更改为你的域名

<binding protocol="https" bindingInformation="*:443:www.xxxxxx.com" />

ok!

 

posted @ 2019-01-09 14:27  zhang_you_wu  阅读(2618)  评论(1编辑  收藏  举报