IIS 多站点配置SSL访问问题

2021年10月28日06:37:49 评论 536
首月免费体验

最近给一个站点配置了SSL,然后发现这台服务器上所有的站点加上https都跳转到配置SSL证书的站点上了。

解决办法:

编辑如下文件

C:\Windows\System32\inetsrv\config\applicationHost.config

找到210行左右,观察红色位置。给443加上域名

<site name="IDCSystem" id="2" serverAutoStart="true">
<application path="/" applicationPool="IDCSystem">
<virtualDirectory path="/" physicalPath="D:\websites\IDCSYSTEM" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:80:www.yunwutong.cn" />
<binding protocol="https" bindingInformation="*:443:www.yunwutong.cn" />
</bindings>
<logFile logFormat="W3C" />
</site>

 

 

 

 

 

weinxin
博主微信
这是我的微信扫一扫

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: