IIS7环境配置HTTPS无法指定主机头 如何手动修改呢?
时间:2019-11-27 16:22:11 来源:郑州天诺
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。
首先停止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。
案例推荐>>查看更多
- 服务热线:18137867102 18137867101 0371-55337102 地址:中国·郑州郑东新区绿地原盛国际3号楼A座6楼73号
- QQ:48757702 / 408923324 / 404873470 Copyright © 2014-2019 zztnuo.com 天诺网络 版权所有.
- 豫ICP备15001998号-1 本站关键词:郑州网站建设、郑州网站托管、网站优化
豫公网安备 41010702002407号