I have an IIS7.5 server (also running SQL Server) which has a server name of (say) dc-db
.
On this server, my IIS default site runs correctly on http://localhost
and http://dc-db
I want to load on a web app to run at http://management.dc-db
I have created the new site, and attempted to use the following bindings for host name:
management.*
management.dc-db
management.dc-db.local
In all cases, I get the standard
I should note that after each change the site was restarted.
I have read other acticles relating to wildcard subdomains, which is not what I want to do, and couldn't find anything useful in that regard. Happy to be corrected if this is a duplicate.
If they run a DNS server: Add a new Forward Lookup Zone, choose primary zone, and add subdomains to this local zone. Add A records for every subdomain you want to use, point them to the machine with the IIS server.
Then you can add the websites to IIS the way you did.
Make sure that all PCs use this DNS server.
This allows you to use any domain name on your local network. Make sure not to overwrite existing ones though, as that would break the original website.
What you can do is "Stop" the localhost IIS site and enable the management.dc-db IIS site and then type in localhost. Switch back and forth as needed. As of right now, IIS should complain about duplicate "*" bindings on port 80.
Better option: What you can do is add a second IP address eg. 192.168.0.5 to computer (Open Network and Sharing Center => Change Adapter Settings => Right Click Adapter/Connection => Properties => Highlight Internet Protocol Version 4 TCP/IP4 => Properties => Advanced => IP Settings => Add) Windows 7 in mind, with a static IP set, DHCP will not work.
After all this is done, you go and add New website in IIS. When it asks for binding information, instead of allowing "*" change it to the new IP you created above (192.168.0.5). Type in 192.168.0.5/index.html in url to access secondary site.
Both sites are readily accessible. (site1: localhost, site 2: 192.168.0.5/index.html). Add more IP's for however many sites you add.