ASP.NET multi-Tenant Application

前端 未结 4 876
轻奢々
轻奢々 2021-02-04 19:15

I have an Asp.net application 3.5. I want to be able to allow multiple/ different clients to access the same application but using different URL\'s. I have already managed to co

4条回答
  •  别跟我提以往
    2021-02-04 19:34

    The common case is that you'll have to configure a new virtual site for each of your new tenants during account provisioning. See Creating a New Virtual Server on how to achieve this programatically. Some though argue (with convincing arguments...) that spinning up an appdomain for each tenant is a waste of resources and one should use routing in the application that inspect the HOST header, see Multi-tenant ASP.NET MVC – Introduction.

    Configuring IIS/ASP to respond to your tenant sub-dmains is the easy part. The real problem will be to configure DNS for your tenants, and that depends on your DNS solution.

提交回复
热议问题