Hello all,
This may not be Jmix specific but it also has to do with it in a way.
I am using Jmix multitenancy addon for my application.
I want a situation whereby I can map sub-domains to different tenants.
For example, a tenant with url: www.domain_name.com/#login?tenantId=mod
. I don’t want such a tenant to even know about the urlrouting tenantId=mod. I want to give each tenant a specific subdomain that will route to the appropriate tenant.
For example:
www.domain_name.com/#login?tenantId=mod
should map to mod.domain_name.com
www.domain_name.com/#login?tenantId=sod
should map to sod.domain_name.com
All that the tenant needs to do is to input mod.domain_name.com
on the browser and it will be appropriately directed.
Please what is the best way to do this? I am currently using Tomcat Apache as the web server but I can’t find how to do this mapping. I have tried the DNS and Windows host file also.
Anyone who has done multitenancy application should please advise me here.
Thanks