You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Pierre-Henry Perret <ph...@neteclair.fr> on 2001/07/02 11:13:10 UTC

redirect to port 80

Bonjour,

I have installed cocoon and made it serving corretly xml pages, well
it's nice! 

I would like to register my site as a cocoon user but i can't serve on
other
port than 8080 (e.g i must give an address as
'http://localhost:8080/cocoon..') - all other network stuff working
correctly
, i mean DNS - i don't have to do this with tomcat jserv because i can
directly see a working servlet as in
'http://localhost/servlets/examples...' 

i guess no idea to manage this,

Pierre-Henry Perret
Cocoon user
StDenis, France

---------------------------------------------------------------------
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: redirect to port 80

Posted by Anders Conrad <ac...@dsl.dk>.
I understand that you want your web-server that is serving Cocoon to listen
on port 80. I also assume that you are currently using Tomcat as a web
listener on its default port 8080.

Given that, you can either keep using Tomcat as a web listener and change
the port number in the configuration file tomcat/conf/server.xml where you
have some lines like

        <Connector className="org.apache.tomcat.service.PoolTcpConnector">
            <Parameter name="handler"

value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
            <Parameter name="port"
                value="8080"/>

Change the value from 8080 to 80.

Or - as someone else suggested - use the Apache web server to serve Cocoon
on its default port 80. This is supposedly the better solution for a
production environment. In this case you will have to install and configure
mod_jk as a link between Apache and Tomcat. There are a number of files to
review to get this right, such as Apache's httpd.conf to include mod_jk, you
have to create a configuration file for mod_jk (such as the example
cocoon/conf/mod_jk_cocoon.conf or tomcat/conf/mod_jk.conf_auto) and include
it in httpd.conf, and you have to adjust things in
tomcat/conf/workers.properties.

I hope I got it right! I just managed to get it to work myself.

Anders
----- Original Message -----
From: "Pierre-Henry Perret" <ph...@neteclair.fr>
To: <co...@xml.apache.org>
Sent: Monday, July 02, 2001 11:13 AM
Subject: redirect to port 80


> Bonjour,
>
> I have installed cocoon and made it serving corretly xml pages, well
> it's nice!
>
> I would like to register my site as a cocoon user but i can't serve on
> other
> port than 8080 (e.g i must give an address as
> 'http://localhost:8080/cocoon..') - all other network stuff working
> correctly
> , i mean DNS - i don't have to do this with tomcat jserv because i can
> directly see a working servlet as in
> 'http://localhost/servlets/examples...'
>
> i guess no idea to manage this,
>
> Pierre-Henry Perret
> Cocoon user
> StDenis, France
>
> ---------------------------------------------------------------------
> 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: redirect to port 80

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

	you should tell Apache to redirect to port 8080 when something related to a
Cocoon context is called in.

	For instance, inerting the following line in mod_jk.conf redirect to port
8080 everything in the "cocoon" context:

	JkMount /cocoon/* ajp12

Best regards,
 
---------------------------------------------
               Luca Morandini
               GIS Consultant
            lmorandini@ieee.org
          +39 0744 59  85  1 Office
          +39 0335 681 02 12 Mobile
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------


> -----Original Message-----
> From: pierre@tourian.nerim.net [mailto:pierre@tourian.nerim.net]On
> Behalf Of Pierre-Henry Perret
> Sent: lunedì 2 luglio 2001 11.13
> To: cocoon-users@xml.apache.org
> Subject: redirect to port 80
>
>
> Bonjour,
>
> I have installed cocoon and made it serving corretly xml pages, well
> it's nice!
>
> I would like to register my site as a cocoon user but i can't serve on
> other
> port than 8080 (e.g i must give an address as
> 'http://localhost:8080/cocoon..') - all other network stuff working
> correctly
> , i mean DNS - i don't have to do this with tomcat jserv because i can
> directly see a working servlet as in
> 'http://localhost/servlets/examples...'
>
> i guess no idea to manage this,
>
> Pierre-Henry Perret
> Cocoon user
> StDenis, France
>
> ---------------------------------------------------------------------
> 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>