Configure a Subdomain in IIS on Windows Server
VPS and Dedicated servers not shared hosting
Evans
Last Update 3 måneder siden
Take note and ensure that:
- The domain name's DNS is hosted through our platform as guided here: Manage DNS via client area
- You have set up the correct DNS pointing.
- Kindly note that the subdomain will resolve via the HostAfrica DNS, not your Windows DNS Manager.
Set Up the Subdomain Site in IIS on Windows Server 2022
- Open IIS Manager on the Windows Server.
- In the left panel, right-click Sites > choose Add Website.
- Fill in the form:
- Site Name: e.g., sub.example.com
- Physical Path: Browse to (or create) the folder where the site files will be stored (e.g., C:\inetpub\sub)
- Binding Type: http
- IP Address: Select the server's IP or use All Unassigned
- Port: 80
- Host Name: Enter sub.example.com(here they put the subdomain name)
- Click OK to save and start the site.
🔒 Firewall Check
Make sure that port 80 (HTTP) and 443 (HTTPS) are allowed through Windows Defender Firewall and any network firewalls.