Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Is there away to move the tenant administration to a subdoma #4382


User avatar
0
michaelm created

Is there a way for us to host the tenant admin as subdomain on same level as other tenant sites.

example: mydomain.com - where we can host our public facing site contents. MasterAdmin.mydomain.com - where master tenant admin will take place Tenant1.mydomain.com Tenant2.mydomain.com Tenant3.mydomain.com


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @MichaelM,

    Yes, you need to implement a custom domain tenant resolver like this one <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/master/src/Abp.AspNetCore/AspNetCore/MultiTenancy/DomainTenantResolveContributor.cs">https://github.com/aspnetboilerplate/as ... ributor.cs</a>. Then, return null for TenantId if tenancyName is "MasterAdmin" or whatever you want to use.

    Don't forget to add it to domain resolvers Configuration.MultiTenancy.Resolvers.Insert(0,new YourCustomTenantResolveContributor());