iisS7 配置SSL 绑定主机头实现多站点访问

来源:互联网 发布:最优化计算方法黄正海 编辑:程序博客网 时间:2024/05/20 07:52

 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。

阅读全文
0 0