You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Simone Gianni <si...@discoone.com> on 2001/10/23 10:06:56 UTC

Cocoon + Tomcat + Apache

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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Cocoon + Tomcat + Apache

Posted by Lajos Moczar <lm...@galatea.com>.
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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Cocoon + Tomcat + Apache

Posted by Martijn Bouterse <ma...@surfnet.nl>.
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 ?

Depends on the version of Cocoon you use, please be more specific.

Martijn Bouterse

---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: Cocoon + Tomcat + Apache

Posted by Luca Morandini <l....@tin.it>.
Simone,

1) you could use Apache mod-rewrite to get rid of "cocoon" in the URI (see
Cocoon FAQ)
2) you could map, say, every XML file to cocoon (check Tomcat docs)
3) you could use <map:read> to avoid Cocoon process (and thus slow down)
static content (see mailing list archives)

Best regards,

---------------------------------------------
               Luca Morandini
               GIS Consultant
              lmorandini@ieee.org
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------


> -----Original Message-----
> From: Simone Gianni [mailto:simone@discoone.com]
> Sent: Tuesday, October 23, 2001 10:07 AM
> To: cocoon-users@xml.apache.org
> Subject: Cocoon + Tomcat + Apache
>
>
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>