Re: Multiple webapps on virtual hosts
Posted by
cjhowe on
Sep 15, 2006; 6:19am
URL: http://ofbiz.116.s1.nabble.com/Multiple-webapps-on-virtual-hosts-tp141863p141875.html
you need to change the webapp configuratino for the
images component to have virtual hosts for def.abc.com
as well as abc.com (as well as localhost,etc) I'm
sure there's a more elegant way of doing it so that
you don't have to explicitly list every host, but this
should get your current setup going.
--- Ravish Kamath <
[hidden email]> wrote:
> All,
>
> We have a store set-up on Ofbiz, lets say
> www.abc.com/ecommerce/control/main. As a next step
> we are looking at
> launching another store targetted at a sub-vertical
> within the abc space
> with a different view/catalog running of the same
> instance. The new store
> should be accessible @
> www.def.abc.com/defecommerce/control/main. The
> following are the steps we followed:
>
> a) Created a new Store
> b) Created a new website and associated the store
> created in step a with
> this site.
> c) Replicated the ecommerce webapp and renamed it as
> defecommerce.
> d) Altered the ofbiz-component.xml and added the
> following entry:
>
> <webapp name="defecommerce"
> title="Def ECommerce"
> server="default-server"
> location="webapp/defecommerce"
> mount-point="/defecommerce"
> app-bar-display="false">
> <virtual-host host-name="www.def.abc.com"/>
> </webapp>
>
> e) Edited the web.xml under WEB-INF, to point to the
> new website id.
> f) On restarting the ofbiz instance, while both the
> ecommerce instances can
> be accessed, the static resources served out of the
> images component, are
> not being served for the defecommerce webapp. Access
> logs show that all
> static resource fetch requests have received http
> 400 error code response.
> Would this means that all static resources need to
> be served out of the same
> webapp, defecommerce ?
>
> TIA,
> ravish
>
>