Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Multiple root apps (tenant)

$
0
0
Hi everybody,

I would like to run multiple websites on a single instance using the tenant functionality.

In Ofbiz release 13.07 it was working by using virtual hosts:

Root mount for virtual host:

<webapp name="demo"
title="Demo"
server="default-server"
location="webapp/demo"
mount-point="/ "
app-bar-display="false">
<virtual-host host-name="demo.com"/>
</webapp>

As I want to reuse code/resources from other webapps I did the following: for example framework/images

This was necessary to make the images webapp available for all the webapps that already used it:
<webapp name="images"
title="Images"
server="default-server"
location="webapp/images"
mount-point="/images"
app-bar-display="false">
</webapp>

This was necessary to make the images webapp available for the virtual host:
<webapp name="images"
title="Images"
server="default-server"
location="webapp/images"
mount-point="/images"
app-bar-display="false">
<virtual-host host-name="demo.com"/>
</webapp>

I tried to migrate to the actual trunk but failed as the virtual host logic seems to work different. As far as I understood (in 13.07), other webapps where only available for a virtualhost if they had a matching virtual host entry as well.

Can someone please help me by telling me how this is done correct.

Best regards,
Ingo

Viewing all articles
Browse latest Browse all 5648

Trending Articles