
IIS7環境配置HTTPS無法指定主機頭 如何手動修改呢?
時間:2019-11-27 16:22:11 來源:鄭州天諾
IIS7下面默認HTTPS綁定是無法指定主機頭的,我們可以通過手工修改IIS配置來實現主機頭綁定。
首先停止IIS服務。
然后打開C:/Windows/system32/inetsrv/config/applicationHost.config
搜索你的站點名稱找到類似下面的配置項,做相應修改:
<site name="Web01" id="3">
<application path="/" applicationPool="Web01">
<virtualDirectory path="/" physicalPath="E:/Web/Web01" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:80:web1.web.com" />
<binding protocol="https" bindingInformation="*:443:" />
</bindings>
</site>
找到https的配置項目,修改為:
<binding protocol="https" bindingInformation="*:443:web1.web.com" />
在443后面增加你的域名,保存。
再次啟動IIS,OK。
首先停止IIS服務。
然后打開C:/Windows/system32/inetsrv/config/applicationHost.config
搜索你的站點名稱找到類似下面的配置項,做相應修改:
<site name="Web01" id="3">
<application path="/" applicationPool="Web01">
<virtualDirectory path="/" physicalPath="E:/Web/Web01" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:80:web1.web.com" />
<binding protocol="https" bindingInformation="*:443:" />
</bindings>
</site>
找到https的配置項目,修改為:
<binding protocol="https" bindingInformation="*:443:web1.web.com" />
在443后面增加你的域名,保存。
再次啟動IIS,OK。
案例推薦>>查看更多

- 服務熱線:18137867102 18137867101 0371-55337102 地址:中國·鄭州鄭東新區綠地原盛國際3號樓A座6樓73號
- QQ:48757702 / 408923324 / 404873470 Copyright © 2014-2019 zztnuo.com 天諾網絡 版權所有.
- 豫ICP備15001998號-1 本站關鍵詞:鄭州網站建設、鄭州網站托管、網站優化
豫公網安備 41010702002407號