You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by shrinivasdevarkonda <sh...@gmail.com> on 2007/05/28 10:17:55 UTC

configure apache web server with Tomcat and Geronimo on two different ports with the help of mod_jk

Hi,
     I have 3 web servers Apache,Jakarta tomcat,Apache geronimo.Is it
possible to configure Jakarata Tomcat on 8081,Geronimo on 8080 and configure
the Apache ( port 80) with these two with the help of mod_jk.
     Normally Apache + mod_jk + tomcat or Geronimo works.But is it possible
to configure like in above case ?
If yes then how ?
 
      I have apache with some virtual hosts.I want some virtualhosts should
redirect to Jakarta Tomcat (8081) and some to Apache Geronimo (8080).Is it
possible to do settings like this?
     Please let me know the info regarding this ?


Thanks,
Shrinivas.

     


 
-- 
View this message in context: http://www.nabble.com/configure-apache-web-server-with-Tomcat-and-Geronimo-on-two-different-ports-with-the-help-of-mod_jk-tf3826692s134.html#a10832654
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: configure apache web server with Tomcat and Geronimo on two different ports with the help of mod_jk

Posted by Philipp Stecher <ph...@hexdust.net>.
Hi

I would try the following ( pathes are given for debian )

- add two workers to /etc/libapache2_mod_jk/workers.properties using your 
ports (=> see documentation for mod_jk)

- add the workers to geronimo (/path/to/geronimo/var/config/config.xml   for 
geronimo; sorry, cant rember file for tomcat => see documentations for 
geronimo & tomcat)

- add to virtual host file. 
( I use different files for every host, so 
every /etc/apache2/sites-available/example.com file should contain something 
like: 
<VirtualHost *:80>
        ServerAdmin     admin@example.com
        ServerName      example.com
        # geronimo
        JkOptions +ForwardURICompatUnparsed
        JKMount /* geronimo_ajp13				
	# above depends on worker.properties worker name
</VirtualHost>
)

- restart apache2

- optionally tweak workers.properties and JKOptions in virtual host file

Good Luck


> Hi,
>      I have 3 web servers Apache,Jakarta tomcat,Apache geronimo.Is it
> possible to configure Jakarata Tomcat on 8081,Geronimo on 8080 and
> configure the Apache ( port 80) with these two with the help of mod_jk.
>      Normally Apache + mod_jk + tomcat or Geronimo works.But is it possible
> to configure like in above case ?
> If yes then how ?
>
>       I have apache with some virtual hosts.I want some virtualhosts should
> redirect to Jakarta Tomcat (8081) and some to Apache Geronimo (8080).Is it
> possible to do settings like this?
>      Please let me know the info regarding this ?
>
>
> Thanks,
> Shrinivas.

-- 
Philipp Stecher
phi@hexdust.net