IIS7 配置SSL 绑定主机头

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

    首先停止IIS服务。

    然后打开C:/Windows/system32/inetsrv/config/applicationHost.config

    搜索你的站点名称找到类似下面的配置项,做相应修改:

    <site name="Web01" id="3">
      <application path="/" applicationPool="Web01">
        <virtualDirectory path="/" physicalPath="E:/Web/Web01" />
      </application>
      <bindings>
        <binding protocol="http" bindingInformation="*:80:web1.web.com" />
        <binding protocol="https" bindingInformation="*:443:" />
      </bindings>
    </site>

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

    <binding protocol="https" bindingInformation="*:443:web1.web.com" />

    在443后面增加你的域名,保存。

    再次启动IIS,OK。

转:http://blog.csdn.net/zhangking/article/details/6347400

原文地址:https://www.cnblogs.com/liuhaitao/p/3700291.html