IIS – Multiple Websites on the same server

0
22



Would you like to learn how to install IIS and configure multiple Websites on a computer running Windows? In this tutorial, we are going to show you how to use the Host Header feature to configure multiple Websites on the same IIS server.

• Windows 2012 R2
• Windows 2016
• Windows 2019

In our example, the IIS server IP address is 35.160.86.106.

Windows Tutorial:

On this page, we offer quick access to a list of Windows tutorials.



Tutorial Windows – IIS Installation

Open the Server Manager application.

Access the Manage menu and click on Add roles and features.

Windows 2012 add role

On the Server Roles screen, select the option named: Web Server IIS.

Click on the Next button.

IIS Installation

On the following screen, click on the Add features button.

IIS Features

On the Features screen, click on the Next button.

Windows 2012 - Features

On the Role service screen, click on the Next button.

IIS - Role Service

On the Summary screen, click on the Install button.

IIS installation summary

Congratulations! You have finished the IIS service installation on a computer running Windows.

Tutorial IIS – DNS Domain Registry

Access the GODADDY website and purchase a DNS domain.

In our example, we purchase a domain named: GAMEKING.TIPS.

You can use any website to purchase a DNS domain, GoDaddy is just my personal choice.

Create a DNS entry pointing your website to the computer running IIS.

In our example, we created a DNS entry pointing WWW.GAMEKING.TIPS to 35.160.86.106.

IIS - MULTIPLE WEBSITES DNS

Use the NSLOOKUP command to test your DNS configuration.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Open your browser and try to access the HTTP version of the website.

In our example, the following URL was entered in the Browser:

• http://www.gameking.tips

IIS - DEFAULT WEBSITE

Congratulations! You have finished the required DNS configuration.

Tutorial IIS – Enable the HTTPS

Start the application named: IIS Manager.

Start IIS Windows

On the IIS Manager application, select your IIS server name.

On the right part of the screen, access the option named: Server certificates.

IIS enable HTTPS

If you already have a certificate, click on the Import option on the top right part of the screen.

If you want to generate a self-signed certificate, select the option named: Create a self-signed certificate.

IIS Self-signed certificate

Enter a name to the certificate and click on the OK button.

IIS HTTP Certificate

Right-click on the desired website and select the option named: EDIT BINDINGS.

IIS Bind HTTPS

Click on the Add button.

IIS Bindings

Perform the following configuration:

• Type – HTTPS
• IP Address – All unassigned
• Port – 443
• SSL Certificate – Select the desired certificate

Click on the OK button.

IIS Configure HTTPS

On the IIS server, open your browser and enter the IP address of your web server using the HTTPS protocol.

In our example, the following URL was entered in the Browser:

• https://127.0.0.1

The HTTPS page should be presented.

IIS SSL TLS

Congratulations! You successfully configured the HTTPS feature on the IIS server.



The post IIS – Multiple Websites on the same server appeared first on TechExpert.

Sumber: TechExpert

LEAVE A REPLY

Please enter your comment!
Please enter your name here