且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在IIS中为Web应用程序处理子域

更新时间:2022-12-21 22:54:48

由于您的描述不清楚,我最初的想法是,您可以在IIS中设置不同的Bindings来满足所有子域的需要.

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.

在IIS 7中,右键单击您的网站->编辑绑定->添加.

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