IIS實現HTTPS的主機名繫結
阿新 • • 發佈:2019-01-09
預設情況下,IIS中HTTPS 繫結是無法指定主機名的
解決辦法:通過手工修改 IIS 配置來實現主機頭繫結。開啟如下位置的檔案。
C:\Windows\system32\inetsrv\config\applicationHost.config
找到節點
<bindings> <binding protocol="net.tcp" bindingInformation="808:*" /> <binding protocol="net.pipe" bindingInformation="*" /> <binding protocol="net.msmq" bindingInformation="localhost" /> <binding protocol="msmq.formatname" bindingInformation="localhost" /> <binding protocol="http" bindingInformation="*:80:www.xxxxxx.com" /> <binding protocol="https" bindingInformation="*:443:" /> </bindings>
更改為你的域名
<binding protocol="https" bindingInformation="*:443:www.xxxxxx.com" />
ok!