Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

MICROSOFT IIS 10 WILD CARD SUBDOMAINS

Wild card subdomain configurations in a web server software allow redirection of all non-existent subdomains to a main Domain. In other words, if a user types an invalid subdomain name in a browser, the web server automatically redirects the request to the preferred domain. This feature was not available in Microsoft IIS until IIS 10.

The following sections illustrate the steps for deploying wild card subdomains in IIS 10 in various site configurations.

I. Configuring a new website with a wild card subdomain:

  • Open Internet Information Manager, and select the server in which the domain exists.
  • Go to the ‘Add Website’ option from the right pane.

  • Now enter the details of your website, and add the wild card host header in the ‘Host name’ box.

Your website is now configured with wild card subdomains.

II. Configuring wild card header for an existing domain:

  • Open Internet Information Manager and select the server in which the domain exists.
  • Go to the domain for which the wild card header is to be configured.
  • Now select the ‘Bindings’ option from the right pane.

  • Select the appropriate bindings from the list (http, https etc.) and choose the ‘Edit’ option.

  • Now enter the wild card entry in the ‘Host name’ field, and click ‘OK’ to finish the configuration

III. Adding a wild card host header to an existing site via PowerShell

You can easily add a wild card Host Header to an existing domain via PowerShell using the Set-WebBinding module

Import-Module WebAdministration;
Set-WebBinding -Name "example.com" -HostHeader "example.com" -PropertyName "HostHeader" -Value "*.example.com"

The post MICROSOFT IIS 10 WILD CARD SUBDOMAINS appeared first on Sysally.



This post first appeared on Make IT Work - A Complete Solutions For IT Professionals, please read the originial post: here

Share the post

MICROSOFT IIS 10 WILD CARD SUBDOMAINS

×

Subscribe to Make It Work - A Complete Solutions For It Professionals

Get updates delivered right to your inbox!

Thank you for your subscription

×