Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 76695 invoked by uid 500); 14 Aug 2002 21:17:02 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 76683 invoked from network); 14 Aug 2002 21:17:02 -0000 Message-ID: <911C684A29ACD311921800508B7293BA0221DCBB@cnmail> From: Geoff Howard To: "'cocoon-users@xml.apache.org'" Subject: RE: Configure to support virtual directories Date: Wed, 14 Aug 2002 17:17:47 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N well, it may get at cocoon, if you mean for one cocoon instance to be serving both sites. In this case, you really need to rephrase the = question to have www.abc.com point to {COCOON_WEBAPP_DIR}/abc_cocoon and = www.xyz.com point to {COCOON_WEBAPP_DIR}/xyz_cocoon where these are sub-sitemaps. After you have abc.com and xyz.com coming to cocoon, you'll have two = options described at=20 http://xml.apache.org/cocoon/faq/faq-configure-environment.html either have cocoon setup as the ROOT webapp, or use apache mod_rewrite = or something like it. after that, you'd most likely use the org.apache.cocoon.matching.WildcardHostMatcher to do something like=20 then, you'd have=20 xyz/sitemap.xmap and abc/sitemap.xmap to handle each site individually. If you, on the other hand need to share many uri's between the sites = (as the project I've been working on)=20 then you'd need to nest some matchers. For instance, if www.abc.com/article.html?id=3D3 needs to be the same as=20 www.xyz.com/article.html?id=3D3 but with a different page wrapper, = you'd use the host to determine which xsl to=20 apply instead of sending them off to a different sitemap. =20 In this case, you'll want to look into sitemap variables (input = modules, etc) if you start getting into complex=20 nesting and matching or are unable to reuse your pipeline logic enough. Is that getting close to what you were looking for? Geoff Howard > -----Original Message----- > From: Antonio Gallardo Rivera=20 > [mailto:agallardo@agsoftware.dnsalias.com] > Sent: Tuesday, August 13, 2002 11:02 PM > To: cocoon-users@xml.apache.org > Subject: Re: Configure to support virtual directories >=20 >=20 > Hey, this is not a Cocoon thing. This is a question about the=20 > use of Tomcat or=20 > what ever JSPcontainer you use. >=20 > Antonio Gallardo >=20 >=20 > El Martes, 13 de Agosto de 2002 20:10, Greg Jones escribi=F3: > > Does anyone what is required to have Cocoon work as the default > > directory for a multiple site environment? > > > > Example would be www.abc.com docBase points to = ../webapps/abc_cocoon > > And > > www.xyz.com docBase points to ../webapps/xyz_cocoon > > > > Will this work? Can there be two instances of cocoon=20 > working like this? > > > > > > > > Thanks in advance -- >=20 > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. >=20 > To unsubscribe, e-mail: > For additional commands, e-mail: >=20 --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: