步骤:
- 打开:%systemroot%\SYSTEM32\inetsrv\config\
- 打开:applicationHost.config
- 查找:<binding protocol="https"
- bindingInformation="IP地址:443:这里填入域名" />
IIS中的效果:
通过“https://IP”访问的效果:
Not Found
HTTP Error 404. The requested resource is not found.
IIS https绑定主机头方法(可实现禁止直接通过IP访问,好像还可以实现IIS中绑定多个https<是使用多个单域名证书,非多域名证书>)
原文地址:https://www.cnblogs.com/xiaohi/p/8807498.html