Microsoft IIS 10.0 – Testing uploaded website pages

Install PHP on CentOS 8

In this recipe, before starting to test these sites, it’s important to verify the Default Document settings of the wildcard hosts ssl.v2mysite.com and demo.v2mysite.com. We are going to test web application pages developed in framework version 4 and upload them to wildcard host ssl.v2mysite.com. We will also test our HTML web page with wildcard host demo.v2mysite.com, which has already been uploaded.

Getting ready

To step through this recipe, you will need a running IIS 10.0 instance. You should have already created, configured, and uploaded web pages for wildcard hosts ssl.v2mysite.com and demo.v2mysite.com. You must have administrative privileges.

How to do it…

  1. Log in to Windows Server 2016, and go to Server Manager.
  2. Click on the Tools menu and open IIS Manager.
  3. Expand the IIS Server ( WIN2016IIS). You will get the listed A pplication Pools and Sites. You will get three websites listed in the Sites folder– foldermysite.com, v2mysite.com, and v4mysite.com–and two wildcard hosts, ssl.v2mysite.co m and demo.v2mysite.com, which we have already created.
  4. Click on the wildcard host demo.v2mysite.com, go to the right-hand side of the IIS Manager console. You will see the Features View. Inside the Features View, we have the Default Document settings:
  1. Open the Default Document settings, and check whether isstart.hmt is available:
  1. We’ll next cross-check the Default Document settings and verify whether everything is perfect for testing the wildcard host URLs demo.v2mysite.com and ssl.v2mysite.com. Here, we have the entry for iisstart.htm at the top of the list. This is the file name of the demo.v2mysite.com wildcard host’s web page, iisstart.htm. The Default Document has to be defined in the default document settings for our website’s default page name, with an extension.

 

 

  1. Let’s move to the Default Document settings of wildcard host ssl.v2mysite.com. We find that default.aspx is already there and at the top of the list:
  1. Close IIS Manager, open Internet Explorer, and type the wildcard host URL demo.v2mysite.com, as shown here:
  1. You can see that the wildcard host demo.v2mysite.com is running perfectly.

 

 

  1. Now, open the wildcard host URL in Internet Explorer and check the results:
  1. The wildcard host ss.v2mysite.com is also running perfectly. You can host multiple wildcard hosts with your own parent domain name with different application pools for different types of websites.

How it works…

First, we checked the Default Document settings of the wildcard hosts ssl.v2mysite.com and demo.v2mysite.com. We tested web application pages developed in framework version 4 and uploaded to wildcard host ssl.v2mysite.com. We also tested with an HTML web page for the wildcard host demo.v2mysite.com.

Comments are closed.