IIS 下设置 https 主机名灰色无法编辑怎么办?
编辑: EKETEAM 最后编辑时间: 2023-12-04 14:41 浏览: 161
在 IIS 设置中,选择 https,选择相应的 SSL 证书,主机名无法填写。如下图所示:
解决办法
- 请按路径
C:\Windows\system32\inetsrv\config\applicationHost.config
打开 applicationHost.config
文件。<site name="example.cloud.com" id="2">
<application path="/">
<virtualDirectory path="/" physicalPath="D:\web\e
help" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:80:help.eketeam.com
" /><binding protocol="https" bindingInformation="*:443:" />
</bindings>
</site>
- 修改内容如下:
- 以 “help.eketeam.com” 域名为例。
- 将
<binding protocol="https" bindingInformation="*:443:" />
修改为<binding protocol="https" bindingInformation="*:443:
help.eketeam.com" />
。
- 文件无法直接修改时,可以尝试使用管理员权限进行修改或复制文件到桌面修改后,进行替换。
- 文件保存后,重新添加网站绑定即可。