亲测网上所谓的单端口多证书https不可行,iis7仅支持单端口单证书
第一步:修改配置文件。
打开:C:/Windows/system32/inetsrv/config/applicationHost.config
搜索你的站点名称找到类似下面的配置项,做相应修改:
<site name="exlb" id="10066" serverAutoStart="true"> <application path="/" applicationPool="exlb"> <virtualDirectory path="/" physicalPath="d:\wwwroot\exlb\wwwroot"/> </application> <bindings> <clear /> <binding protocol="http" bindingInformation="*:80:www.exlb.pw" /> <binding protocol="http" bindingInformation="*:80:www.exlb.org" /> <binding protocol="http" bindingInformation="*:80:exlb.org" /> <binding protocol="http" bindingInformation="*:80:exlb.pw" /> <binding protocol="https" bindingInformation="*:443:" />
</bindings>
<limits maxBandwidth="4294967295" maxConnections="4294967295" /> <logFile enabled="false" />
</site>
找到https的配置项目,修改为:
<binding protocol="https" bindingInformation="*:443:www.exlb.org" />
在443后面增加你的域名,保存
最后重新启动IIS服务 即可