原文:https://www.digicert.com/ssl-support/ssl-host-headers-iis-7.htm
運(yùn)行CMD
輸入?cd C:\ Windows \ System32 \ Inetsrv
進(jìn)入主機(jī)頭目錄進(jìn)行更改或者添加主機(jī)頭
輸入
appcmd set site /site.name:"Name of Website in IIS" /+bindings.[protocol='https',bindingInformation='*:443:Host Header']
Name of Website in IIS ? 這是網(wǎng)站在IIS服務(wù)器的名稱(盡量不使用中文)
*:443:Host Header ? ? ?? ?為要添加域名的名字
例如:*:443:www.baidu.com ? ? ?
若要添加多條,添加域名必須為這個(gè)站點(diǎn)內(nèi)的域名,且需要進(jìn)行每一條域名的添加。

添加完成之后,請(qǐng)重啟服務(wù)器站點(diǎn),進(jìn)行web訪問測(cè)試