How can I create and manage a multi-tenant ASP MVC application

非 Y 不嫁゛ 提交于 2019-12-03 21:33:09
codeulike

I can't answer this exactly, but I can break it down a little bit.

To set up a new generic subdomain something.myapp.com you'll need to do two things:

1) Programmatically add some new DNS entries via your ISP so that something.myapp.com points to your web server.

2) Programmatically set the local bindings in IIS so that something.myapp.com gets directed to the right website/virtual directory/application

There is some discussion of setting IIS binding programmatically here, which also links through to this forum post here, which mentions that appcmd.exe can be used to set IIS config at run time.

Hope this points you in the right direction ...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!