PHPIN.NET

 找回密码
 立即注册
查看: 4376|回复: 0

[其他] IIS7 https无法绑定主机头,显示灰色

[复制链接]

469

主题

31

回帖

5497

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
5497
发表于 2018-4-23 11:21:43 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

x
IIS7 https无法绑定主机头,显示灰色

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

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

定位到如下位置:
  1. <bindings>
  2.     <binding protocol="https" bindingInformation="*:443" />
  3.     <binding protocol="net.tcp" bindingInformation="808:*" />
  4.     <binding protocol="net.pipe" bindingInformation="*" />
  5.     <binding protocol="net.msmq" bindingInformation="localhost" />
  6.     <binding protocol="msmq.formatname" bindingInformation="localhost" />
  7.     <binding protocol="http" bindingInformation="*:80:www.phpin.net" />
  8. </bindings>
复制代码

找到https的配置项目,修改为:
  1. <binding protocol="https" bindingInformation="*:443:www.phpin.net" />
复制代码

注意这里的www.phpin.net要换成你自己的域名,之后保存即可。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|PHPIN.NET ( 冀ICP备12000898号-14 )|网站地图

GMT+8, 2024-3-28 20:48

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表