take look at the ecommerce clone
Mark Gordon sent the following on 9/10/2008 3:13 PM:
> Hello,
>
> I am trying to get two webapps in the same ofbiz-component to have the
> same context but for different virtual-hosts.
>
> This is so you can have two webapps that are on the root context but
> have different hosts names.
>
> http://appa.com and http://appb.com
>
>
> The ofbiz we are using is based on 5.5.23 of tomcat
>
> Thanks in advance for any assistance.
>
> -Mark
>
>
> <webapp name="appA"
> title="App A"
> server="default-server"
> location="webapp/appa"
> mount-point="/">
> <virtual-host host-name="appa.com"/>
> </webapp>
>
>
> <webapp name="appB"
> title="App B"
> server="default-server"
> location="webapp/appb"
> mount-point="/">
> <virtual-host host-name="appb.com"/>
> <virtual-host host-name="www.appb.com"/>
> </webapp>
>
> like in tomcat you would do this I believe:
>
> <Host name="appa.com" appBase="webapps">
> <Context path="" docBase="appa"/>
> <Logger className="org.apache.catalina.logger.FileLogger"/>
> </Host>
>
> <Host name="appb.com" appBase="webapps">
> <Context path="" docBase="appb"/>
> <Logger className="org.apache.catalina.logger.FileLogger"/>
> </Host>
>
>
>