Hi Sumesh,

that is quite easy. You have to create an entry in table TENANT_DOMAIN_NAME. 

This can be done 

1.) while creating the tenant: gradlew createTenant -PtenantId=mytenant 
-PtenantName="My Name" -PdomainName=com.example
2.) by adding the entry manually into the database (you still need to create 
the tenant before)

+ enable multitenant support in general.properties. That’s it.

Best regards,
Ingo



-----Ursprüngliche Nachricht-----
Von: Sumesh R Acharya <7.sumesh...@gmail.com> 
Gesendet: Samstag, 22. April 2023 09:36
An: user@ofbiz.apache.org
Betreff: TO ACCESS THE MULTI-TENANT INSTANCES USING SUB-DOMAINS

Hello community,

I gone through the document where instruction are given to configure and use 
the nginx as the reverse proxy for the ofbiz single tenant.
LINK :-  https://gist.github.com/bagasme/1de1908c86303c83b7bd51d50a12e041
But i want to know like what configuration i have to make in the ofbiz so that 
i can access two tenants using different sub domains using similar approach 
that is there for the single tenant (using nginx)

Example:

tenant1.example.com   ->   should point to tenant1
tenant2.example.com  -> should point to tenant2

Regards,
Sumeshwol

Reply via email to