Get the App
SLTechnology News&Howtos  ›  Servers  › 

Windows Server 2008 multi-site deployment HTTPS

Shulou Source: shulou.com Published: 2022-06-03 04:28:59 11月23日 Update

Problem scenario

IIS is installed on a host of Windows Server 2008, and two sites are deployed. If you want to access both sites using HTTPS, then apply for two certificates and deploy to these two sites, but you will still report an error when you visit them.

Solution

1. Bind different ports for each site, such as domain1.com:443 and domain2.com:444

2. Assign different IP to each site to resolve conflicts

3. Use wildcard certificates

4. Upgrade to the default IIS version of IIS 8

5. Upgrade the system to Windows Server2012 or above

Experiment preparation site 1:iis.guoxh.cn site 2:abc.guoxh.cn here will introduce the first implementation method in detail, assigning different ports to each site, but the disadvantage is that you need to use https://DOMAIN:PORT/ to access when accessing; start configuration: 1. Add IIS role

First of all, we need to add IIS services, without detailed explanation here, our own Baidu

2. Create a site directory

Find a drive letter to create a webapp directory, and then create the root directories iis and abc of two stations under this directory

3. Create an index file

Create index files for two sites for testing access

4. Import two certificates

Open the IIS Manager and import the two certificates twice

5. Add a site

Add two sites to specify the directory you just built, and specify different ports, where the IIS site specifies port 443, the abc site specifies port 444

6. Add resolution

The test IIS site specifies port 443, and the default access https is 443, so you do not need to specify a port for access; the ABC site specifies port 444, so you need to specify a port for access

At this point, the IIS multi-site deployment https on Windows Server 2008 has been implemented.

Tags: Site two port different directory certificate file method version allocation upgrade test host introduction scenario namely drawback scheme time root directory Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker MariaDB MySQL Xiaomi Apple