Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 42633 invoked by uid 500); 19 Dec 2001 11:35:44 -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 42618 invoked from network); 19 Dec 2001 11:35:44 -0000 Message-Id: <5.1.0.14.0.20011219123358.03d5df30@mail.visitronics.be> X-Sender: bert@mail.visitronics.be X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 19 Dec 2001 12:37:44 +0100 To: cocoon-users@xml.apache.org From: Bert Van Kets Subject: Re: How to offer cocoon virtual hosting? In-Reply-To: <3C206347.1030902@dballiance.ie> References: <3C1F7EA5.9070401@dballiance.ie> <3C1F98CF.5010306@apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This is a simple one. if you copy the cocoon.war file to a new name, ex. host1.war, you actually create a new webapp called host1. You can access this Cocoon installation through http//yourdomain/host1 If you configure Apache so that is redirects a certain subdirectory (or the root for that matter) to the host1 web application, you can have it under any subdirectory you want. You can use mod_webapp to get it done. Read the doc of the mod_webapp to get is done. it requires 4 lines in the httpd.conf file. Bert At 09:52 19/12/2001 +0000, you wrote: >Basically Apache sends all requests for 'whatever-the-domain.com/cocoon/*' >to Tomcat4. Tomcat4's server.xml has many host records for >www.domain1.com, www.domain2.com, www.domain3.com, etc. Within each host >record I can have a context which maps /cocoon to a directory (the >docBase). What I need to know is if the docBase can be any directory as >long as its WEB-INF/web.xml is setup correctly, does it have to be the >cocoon directory itself (i.e. $CATALINA_HOME/webapps/cocoon) or a >sub-directory of it. And for each customer, do I need a separate cocoon >webapp installation or can I have each customer's XML files being directed >towards the one single cocoon install? > >Do I have to start messing around with sitemap files for this type of thing? >If anyone out there has provided virtual cocoon hosting with Tomcat, can >you give me some pointers? > >Thanks, > >Larkin. > >Berin Loritsch wrote: > >>Larkin Cunningham wrote: >> >>>My query relates to how one goes about offering Cocoon through virtual >>>hosting. I have Cocoon 2.0 installed on one of our live web servers >>>alongside Apache and Tomcat 4.0.1. I have Apache talking to Tomcat >>>talking to Cocoon. I have mounted the installed cocoon webapp under >>>$CATALINA_HOME/webapps/cocoon to a context for a single domain (say for >>>now www.thedomain.com). I can now access >>>www.thedomain.com/cocoon/welcome and I see the usual welcome page and I >>>can look at various XML, XSP, FOP pages, etc. >>> >>>So far so good, but how do I go about offering this on a virtual >>>basis? The documentation for cocoon is fine, but doesn't really address >>>virtual hosting (at least I don't think it does). If its there then I >>>wasn't able to understand it. This list and the archives tend to be >>>geared towards single site web applications. And there are very few web >>>hosting companies offering cocoon so there hasn't been much from that >>>direction on this list. >> >> >> >>Are you referring to multiple hosts like this: >> >>http://www.thedomain.com/ >>http://foo.thedomain.com/ >>http://bar.thedomain.com/ >> >>or are you referring to getting rid of the /cocoon/ in front of the URL? >> >> >> >>>I am using mod_jk (ajp 1.3) for getting apache to talk to >>>tomcat/catalina. I have included "JkMount /cocoon/* ajp13" as part of >>>httpd.conf. As part of server.xml under the Host entry for >>>www.thedomain.com I have: >>> >> docBase="/opt/jakarta-tomcat-4.0.1/webapps/cocoon" debug="0"/> >>> >>>This is fine for getting the samples to work, but where do I go next for >>>virtual hosting of customer web applications? Can I change the docBase >>>to a directory within the virtual site space and get XML processed by >>>Cocoon by having the correct web.xml within WEB-INF? >> >> >> >>When you say Virtual hosting, you are mixing what a webapp is for and >>what a web server is for. >> >>You follow your web server's instructions for virtual hosting, and then >>place the directive for mapping requests to the webapp from there. >> >> >>> >>>Any help appreciated. Once I am fully happy with this I will get the >>>site added to the cocoon hosting page. >>> >>>Regards, >>> >>>Larkin Cunningham >>> >>> >>>--------------------------------------------------------------------- >>>Please check that your question has not already been answered in the >>>FAQ before posting. >>> >>>To unsubscribe, e-mail: >>>For additional commands, e-mail: >>> >>>. >> >> > > > >--------------------------------------------------------------------- >Please check that your question has not already been answered in the >FAQ before posting. > >To unsubscribe, e-mail: >For additional commands, e-mail: --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: