Base solution for your next web application
Open Closed

Create a tenant with own domain Url! #4772


User avatar
0
hitaspdotnet created

I have just come up with an idea. Is it possible for any tenant to have a special domain name? For example a tenant with "{TenantName}.AppDomain.com" URL have "{TenantName}.com" based on host tenant.

My project is a eCommerce platform I want Users can build their own store with dedicated URL as feature edition. I think we need a special UI generator with API calling to {TenantName}.AppDomain.com but I'm not sure Any idea please? :roll:


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

    @csbeginner if you can bind different urls to same webisite on IIS (or whatever server you are hosting on), then this is possible. You can implement a custom tenant resolver like this one <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.Web/Web/MultiTenancy/DomainTenantResolveContributor.cs">https://github.com/aspnetboilerplate/as ... ributor.cs</a> and return correct tenant Id according to current url.