I am ha开发者_StackOverflow社区ve a web application on local IIS (mylocalsite.com)
What settings I need, so that I can handle all subdomains of my local site, likeuser1.mylocalsite.com
user2.mylocalsite.com anything.mylocalsite.comAll urls will point to same index page from where I can seperate subdomain and load page accordingly.
Since your description is not that clear, my initial thought would that you can setup different Bindings
in IIS to cater for all the subdomains.
In IIS 7, right click your website -> Edit Bindings -> Add..
But my guess would be that you may need to do this from code, since users are added to your system (assuming user/sub-domain model). For this I refer you to
- Create Binding in in IIS (iis.net)
- Cool new IIS7 Features and APIs - ScottGu
- Microsoft.Web.Administration
精彩评论