Microsoft IIS 10.0 – Uploading .NET web pages to a wildcard host

How to turn off IE enhanced security on Windows Server 2019

In this recipe, we are going to upload website application pages for the ssl.v2mysite.com wildcard host site. The website application pages have been developed in .NET framework version 4.0.

We are going to upload simple HTML website pages as well to the demo.v2mysite.com wildcard host for demonstration.

Getting ready

To step through this recipe, you will need a running IIS 10.0. You should have already created and configured the ssl.v2mysite.com and demo.v2mysite.com wildcard hosts. You should also have administrative privileges.

How to do it…

  1. Log in to Windows Server 2016, and go to Server Manager.
  2. Open Server Manager on Windows Server 2016. Click on the Tools menu and open IIS Manager.
  3. Expand the IIS Server ( WIN2016IIS). We get the listed Application Pools and Sites. You will get three websites listed in the sites folder– mysite.com, v2mysite.com, and v4mysite.com–and two wildcard hosts, ssl.v2mysite.com and demo.v2mysite.com. Now, we are going to upload the webpages for the ssl.v2mysite.com and demo.v2mysite.com wildcard host sites.
  4. Click on the wildcard host ssl.v2mysite.com, go to the right-hand side of the IIS Manager console, and you will get the Actions panel. In the Actions panel, there is an option called Explore:
  1. Click on the Explore option; it will open the content directory of the selected wildcard, ssl.v2mysitecom, or you can mention the physical folder path of the wildcard host folder, as shown here:
  1. We have already created a website application page in ASP.NET version 4.0 and pasted it in the content directory of ssl.v2mysite.com.
  2. Right-click on the default file, and select open the property sheet of the default page:
  1. Now let’s have a look at the extension details of the default application page. As you can see in the previous figure, the Type of file is ASP.NET server page (.aspx). Notice that the default file extension is .aspx and file name is default.aspx.
  2. Let’s upload some of HTML files to demo.v2mysite.com. Follow the same steps for ssl.v2mysite.com and paste it in an HTML file under the appropriate directory. We’ll paste the iisstart.html and iisstart.png files in our case. Both are default files available in the default website, created when you install IIS Server. Let’s use the same iisstart.html and iisstart.png files for testing, but you can use any HTML file or a complete website.
  1. Now close the folder. We are using two types of wildcard hosts. The ssl.v2mysite.com host is an application wildcard host, and the second is demo.v2mysite.com, which is a simple website-type wildcard host.

How it works…

In this recipe, we uploaded website application pages written in ASP.NET to the wildcard host ssl.v2mysite.com. We checked the properties of the default.aspx application page.

We also uploaded simple HTML website pages to the wildcard host demo.v2mysite.com.

Comments are closed.