在安装证书时,若您使用 IIS 服务器进行安装,将 pfx 证书文件导入后,在添加网站绑定域名过程中,类型选择为 “https” 时,出现主机名显示无法编辑的情况,您可以通过以下步骤解决该问题。场景在 IIS 设置中,选择 https,选择相应的 SSL 证书,主机名无法填写。如下图所示:
解决办法请按路径 C:\Windows\system32\inetsrv\config\applicationHost.config 打开 applicationHost.config 文件。 修改内容如下: 说明:
<site name="example.cloud.com" id="8">
<application path="/">
<virtualDirectory path="/" physicalPath="D:\web\cloud" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:80:example.cloud.com" />
<binding protocol="http" bindingInformation="*:80:www.cloud.com" />
<binding protocol="https" bindingInformation="*:443:" />
</bindings>
</site>
文件保存后,重新添加网站绑定即可。
|