Open Closed

How to login as host when sub-domain multi-tenancy is enabled? #9276


0
compassinformatics17 created

Hi Guys, This one seems like it should be easy but I cannot seem to find any reference to it in the docs.

I have enabled sub-domain wildcard multi-tenancy and it works just fine as specifed in the docs.

But when it is enabled, how do I then log in as the host user? If I go to the root domain sitename.com, it just defaults to the default tenant. Is there a way to configure a url for the host such as admin.sitename.com?

Thanks, Barry.


1 Answer(s)
  • 0
    maliming created
    Support Team

    If I go to the root domain sitename.com, it just defaults to the default tenant.

    If I remember correctly, sitename.com will resolve to host.

    If you want to use admin.sitename.com to resolve to host, you can customize the logic of DomainTenantResolveContributor. eg www.

    https://github.com/aspnetboilerplate/aspnetboilerplate/blob/e0ded5d8702f389aa1f5947d3446f16aec845287/src/Abp.AspNetCore/AspNetCore/MultiTenancy/DomainTenantResolveContributor.cs#L41-L66