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

multi-tenancy with fully qualified domains, rather than subdomains? #6420


User avatar
0
sedulen created

A question about tenancy identification and domains. Has anyone setup multi-tenancy with identitying each tenant by a unique fully qualified domain, rather than by a subdomain?

I’m building a system where the host would be “app.foo.com”, but then each individual tenant would be “foo.<companyname>.com”. Yes it requires correct dns configuration by each tenants dns, but I was wondering how internally the aspnz framework would handle that, or where I would look to potentially customize that.

thanks, -Brian


2 Answer(s)
  • User Avatar
    0
    aaron created
    Support Team

    You can implement a custom ITenantResolveContributor.

    See: https://aspnetboilerplate.com/Pages/Documents/Multi-Tenancy#determining-current-tenant

  • User Avatar
    0
    sedulen created

    thank you!