Microsoft IIS 10.0 – Configuring a wildcard host

Installing an FTP server

In this recipe, we are going to configure the wildcard host for an application pool. We will implement the Default Document settings of the wildcard host, with the permissions of that wildcard host. We will also implement the basic and advanced settings of the wildcard host.

Getting ready

To step through this recipe, you need a running IIS 10.0 instance. You should have already created 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. Click on the Tools menu and open IIS Manager.
  3. Expand the IIS server ( WIN2016IIS) from the Connections panel. We get the listed Application Pools and Sites.



  1. Expand the Sites folder, and you will see the listed sites–,,–and you will get the wildcard hosts, and
  1. Select to get the properties of the wildcard host from the Actions panel.
  2. Go to the Actions panel, and you will see Edit Permissions. This is used to provide or deny access to your wildcard host’s content directory. You can manage this permission from the Actions pane. You can go to the wildcard host’s content directory and right-click on the directory to open the property’s pop-up window and select the Security tab. Here, you can edit the access level and deny permission as well.
  3. Now, we have the Bindings option; we already know how to change the bindings of any website. The following actions can be performed through the binding option: adding, removing, and editing the IP, port, protocol, host name, and SSL certificate binding for any website or wildcard host.
  4. Basic Settings… is also the same as a website’s basic settings, because a wildcard host is also a child website for the main website. Here, you can find more clear information about basic settings:
  1. As shown in the previous screenshot, we have the Site name, Application pool, and Physical path of the wildcard host We can set any directory as the physical path.
  2. Let’s have a look at the Advanced Settings now:
  1. In Advanced Settings, just like the website settings, we have the application pool, website ID (number of websites you’ve created, also known as the unique order number of the site index), name of the wildcard host, physical path, and physical path credentials (if you have set them). We’ll leave it at the defaults. The physical path credentials logon type can be clear text, network, batch, or interactive as per our configuration of physical path credentials. We are not using any credentials, so we’ll use the default settings. Preload Enabled is used to keep the application pool always running.
  2. In the Behavior section of Advanced settings, we have Enabled protocols, with the default option type HTTP, and the Failed Request Tracing option, which enables us to trace websites or wildcard host tracking logs. In Limits, we can apply settings to limit the number of users that can access a wildcard host at one time.
  3. Let’s move to the wildcard host, We’ve already configured bindings for it: HTTPS protocol and SSL certificate.
  4. Go to IIS Manager and click on Go to the Actions panel and click on Basic Settings…. You will get the Basic Settings window:
  1. Let’s verify the site application pool and wildcard host (subdomain) settings of The application pool is the same as the site name, as seen in the previous figure.
It’s my recommendation to verify the application pool manually for the .NET CLR version according to the hosted website’s framework version.
  1. Click on the Select button. You will get the application pool properties:
  1. You can see that the application pool version is 4.0. We can also select any other type of application pool available in IIS 10.0 on Windows Server 2016. You can check the list of available application pools by clicking on the Application pool dropdown, and you will get the list of application pools created in IIS 10.0.
  2. Let’s move further to check the Default Document settings. Click on any of the wildcard hosts we’ve created and go to the Features View. Find the default document, double-click on it to open it, and check for the filename default.aspx, which we are going to access in the wildcard
  3. Optionally, select a Default Document in the list, and in the Actions pane, click on Move Up or Move Down to change the file’s precedence.

How it works…

In this recipe, we configured the wildcard host for application pool version 4.0 and had an overview of the permissions of wildcard hosts and content directory folder. We implemented the basic and advanced settings of wildcard hosts. Finally, we implemented the Default Document settings of wildcard hosts.

Comments are closed.