Bootstrap FreeKB - Microsoft IIS - Create a subdomain
Microsoft IIS - Create a subdomain

Updated:   |  Microsoft IIS articles

DNS

Before configuring IIS to point to a subdomain, such as sub1.example.com, you need to configure your DNS server to point the subdomain to the IP address of your IIS web server. For example, your DNS configuration would look something like this:

  • a record - 192.168.0.2 - www.example.com
  • a record - 192.168.0.2 - sub1.example.com
  • a record - 192.168.0.2 - sub2.example.com

IIS

Follow these steps to configure subdomains in IIS:

  1. In the left panel of IIS, right-click on the Sites folder and select Add Website.
  2. Do the following in the Add Application pop-up box:
    • Alias = sub1.example.com
    • Application pool = ASP.NET v4.0
    • Physical path = path to directory (example: C:\sub1.example.com)
    • Type = http <ip address of IIS>
    • Host name = sub1.example.com




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter dc1228 in the box below so that we can be sure you are a human.