tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Gamble <gr...@maths.uwa.edu.au>
Subject Re: Apache 2 + Tomcat 5.0.28
Date Thu, 01 Jun 2006 11:15:07 GMT
On Thu, Jun 01, 2006 at 10:23:35AM +0200, Ga??l Lams wrote:
> Hi
> 
> >I have Apache 2 (as part of a `LAMP' install) and TomCat 5.0.28 installed
> >on a Debian Linux: 2.6.12-1-686 system
> >and I want to make Apache and Tomcat listen/connect to the same port.
> 
> 2 services can not listen to the same port, you probably want Apache
> to listen to port 80 and Tomcat on another port and configure the
> mod_jk apache module + the Java-based Connector on the Tomcat end to
> passe the data between the two.

Thanks for clearing that up.
 
> >....
> 
> Yes, one or two pages contain wrong information, the situation is the 
> following:
> - if you can, use apache 2.2.x and mod_proxy_ajp

I'm going to try this. I've already downloaded, compiled and installed
apache 2.2.2 ... if I reach a brick wall I can't surmount I still
have apache 2.0.55 from a Debian install, that I can fall back on and try
your other suggestion.

Thanks a lot ;-)

Regards,
Greg Gamble

> - if you prefer, or have to, use apache 2.0, use mod_jk. In this case,
> I wouldn't use a connector build for another distribution: download
> the source from tomcat's web site and compile following the
> instructions.
> Then you need to setup working entities, i.e Workers, between the
> apache and Tomcat engines using the mandatory workers.properties file
> (A Tomcat worker is a Tomcat instance that is waiting to execute
> servlets or any other content on behalf of some web server).
> Concrete steps are:
> 1 Create a workers.properties file in your httpd's configuration folder
> 2 Add the module "jk" to the list of apache modules
> 3 modify your httpd.conf to point to the workers file, something like
> JkSet config.file /etc/httpd/workers2.properties
> 4 create the jk.properties file in your tomcat root.
> 5 (optional) Create an apache virtual host "dedicated" to tomcat,
> something like:
> <VirtualHost myhost:80>
>    ServerAdmin webmaster@myhost
>    ServerName myhost
> 
>    DocumentRoot "/opt/jakarta/tomcat/webapps"
> 
>    ErrorLog /var/log/httpd/myhost-error_log
>    CustomLog /var/log/httpd/myhost-access_log combined
> 
> <Location "/*">
>   JkUriSet worker ajp13:localhost:8009
> </Location>
> 
> </VirtualHost>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message