IIS7 配置SSL 绑定主机头

时间:2014-07-22 23:10:55   收藏:0   阅读:359

  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

 

 

IIS7 配置SSL 绑定主机头,码迷,mamicode.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!