Microsoft IIS - Create a subdomain
by
Jeremy Canfield |
Updated: March 20 2020
| 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:
- In the left panel of IIS, right-click on the Sites folder and select Add Website.
- 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