3 Star 4 Fork 1

freessl / https-start

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
IIS7MultiDomainSSL.md 1.48 KB
Copy Edit Web IDE Raw Blame History
Drixn authored 2018-08-14 18:08 . 目录添加链接

IIS7.5如何安装多域名SSL证书

第一步

先点击需要开启SSL的站点,然后点击绑定,然后,点击添加

类型 选择 https

端口 号 填写 555 随便填写,只要不是 443 就可以

SSL证书 选择之前导入的证书

然后点击 确定

一共添加两次,第二次端口号和第一次不一样就可以,因为分带 www不带www 的站点 图1

第二步

打开文件 C:\Windows\system32\inetsrv\config\applicationHost.config

找到

<binding protocol="https" bindingInformation="*:443" />
<binding protocol="https" bindingInformation="*:555" />
<binding protocol="https" bindingInformation="*:666" />
<binding protocol="https" bindingInformation="*:777" />
<binding protocol="https" bindingInformation="*:888" />
<binding protocol="https" bindingInformation="*:999" />

修改成

<binding protocol="https" bindingInformation="*:443:www.mydomain2.com" />
<binding protocol="https" bindingInformation="*:443:mydomain2.com" />
<binding protocol="https" bindingInformation="*:443:www.mydomain3.com" />
<binding protocol="https" bindingInformation="*:443:mydomain3.com" />
<binding protocol="https" bindingInformation="*:443:www.mydomain4.com" />
<binding protocol="https" bindingInformation="*:443:mydomain4.com" />

如下图格式: 图1

第三步

完成上述步骤后,重启每个站点即可(切记不是重启服务器)

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/freessl/https-start.git
git@gitee.com:freessl/https-start.git
freessl
https-start
https-start
master

Search

103611 48b8ff67 1899542 103622 4d02230c 1899542