cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lajos Moczar <lm...@galatea.com>
Subject Re: Cocoon + Tomcat + Apache
Date Tue, 23 Oct 2001 10:33:11 GMT
Hi Simone,

You have a few options:

1) To remove the port 8080, you can use mod_webapp/mod_jk so that Tomcat 
can 'hide' behind Apache.

2) To remove the "cocoon", you can do one of two things:
2a) Rename cocoon.war to ROOT.war and restart Tomcat. This will make 
cocooon the default web application on Tomcat. Make sure, of course, 
that you don't already have something in the ROOT application!
2b) Again, if you don't have anything in the ROOT application on Tomcat, 
you can simply edit Tomcat's server.xml and set the docBase for ROOT to 
/cocoon; i.e:

<Context path="" docBase="webapps/cocoon" reloadable="true"/>

This is usually my first choice.

3) Then you'll have to map either the whole cocoon context or something 
like all *.xml files to Tomcat. Depends on what connector method you use 
(which in turn, depends on what versions of everything you're using). 
This is where you have to decide what should be served where.


My site gives more details on the above. You'll just have to start 
experimenting like we are all doing here ;)

Lajos
galatea.com

Simone Gianni wrote:

> Hi all ..
> 
>     I'm trying to combine cocoon-tomcat with apache in a way that 
> instead of typing 
> http://www.mysite.com:8080/cocoon/something/somethingelse i can simply 
> use http://www.mysite.com/something/somethingelse .... do you know if 
> there is any document describing how to do this? And to make apache 
> serve the static files (images for example) how do i override the 
> "catch-all" to alias some directories (like /images) to a static dir and 
> have them served by apache ?
> 
>     Thanks, ciao
> 
>     Simone
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 
> 



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message