Microsoft IIS 10.0 – Deploying websites

How to configure WordPress multisite with NGINX

In this recipe, we will deploy three websites, namely, mysite.com, v2mysite.com, and v4mysite.com. In our case, we already have these sites ready for deployment, but in your case, you have to create your own, or you can use any available older version to upload under the appropriate site folder, which we’ve learned in our previous examples.

Getting ready

To step through this recipe, you will need a running IIS 10 instance, and websites mysite.com, v2mysite.com, and v4mysite.com configured. You need three sets of website application files as per our demonstration or HTML pages with an administrator user account.

How to do it…

  1. Open Server Manager on Windows Server 2016. Click on the Tools menu and open IIS Manager.
  2. Expand the IIS server ( WIN2016IIS). We get the listed Application pools and Sites; inside the Sites folder, we have three websites created, namely, mysite.com, v2mysite.com and v4mysite.com.
  3. Select mysite.com, go to the Actions panel, click on Basic Settings, and check the physical path of mysite.com. You will get the physical path of mysite.com.
  4. The mysite.com physical path is C :\inetpub\mysite:
  1. Follow the previous steps to copy v2mysite.com to the appropriate folder.
  2. Open the IIS Manager, go to the Connections panel, right-click on v2mysite.com under the Sites menu in the left-hand panel, and click on Explore. It will open the physical path of v2mysite.com:
  1. We have already created an HTML file called Demo.html under the v2mysite subfolder of the wwwroot directory. Now we have to deploy v4mysite.com.
  2. Open IIS Manager, select v4mysite.com, go to the Actions pane, click on Explore, and you will get the physical path of v4mysite.com:
  1. We have the uploaded ASP.Net website under the v4mysite folder, which is under the wwwroot directory, but in your case, you can upload either ASP.Net or HTML files. Its up to your convenience.
  2. Now we have to check each website’s Default Documents, where you can verify the listed Default Home or Index page name, for example, which page comes up first as the home page for someone accessing your website URL. A custom filename can also be used as the default home page through Default Documents:

How it works…

In steps 1 to 9, we opened the three different types of physical paths of each website, and we uploaded the website files. In step 10, we know from where to make settings for your home page or default page.

Comments are closed.