Tomcat 5.5 with Apache 2.0 Integration in 5 Simple Steps
The simplest configuration is described. It assumes you already have Tomcat 5.5 and Apache 2.0 (instructions for Apache 1.3 is also provided) installed and running.
The instructions are applicable (have been tested) for Windows as well as Linux platform.
Assume you want to map test directory of Apache to the mytest web application of Tomcat. Change the name appropriately to suit your configuration.
1. Shutdown Apache & Tomcat Server
2. Add the following lines to httpd.conf (in conf directory of Apache base directory)
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
ProxyPass /test/ http://localhost:8081/mytest/
ProxyPassReverse /test/ http://localhost:8081/mytest/
Note: Replace localhost with the appropriate IP address or hostname of the server where Tomcat is installed.
Note 2: On older Apache 1.3 you will have to use libproxy.so instead:
LoadModule proxy_module modules/libproxy.so
AddModule mod_proxy.c
Pages: 1 2
Filed under Headline News, How To, Java Software, Linux, Open Source Software, Web, Web Services, Windows |
|
RSS 2.0 |
Trackback this Article
|
Email this Article
You may also like to read |





































May 4th, 2005 at 7:30 pm
Works fine!! Thanks !!
No more mod_jk2 and integration problems …
May 4th, 2005 at 7:34 pm
Works fine!! Thanks !!
No more mod_jk2 and integration problems …
November 9th, 2005 at 10:31 pm
[...] 5 Simple Steps to Integrate Tomcat 5.5 with Apache 2.0 - não recomendo, já que o conteúdo estático também será manipulado pelo Tomcat. [...]
November 27th, 2005 at 6:50 pm
anyone got an article using the mod_jk connector?
February 7th, 2006 at 11:26 pm
hi,
can any one help me, i tryed these 5 steps but it did not work for me, please help me out.
Thanking you
September 7th, 2006 at 5:27 am
it is great idea for developers
manisekar
September 25th, 2006 at 11:08 am
[...] Solutions Previouly I had described a much simpler way to integrate Tomcat 5.5 with Apache 2.x, in just 5 steps. [...]
March 28th, 2007 at 2:28 am
please tell me
is there any disadvantage of using this simple 5 steps of integrating tomcat with apche.
is there any advantage of using mod_jk connector over this proxy pass usage.
This seems that just diverting/forwarding to the tomcat ports.
please give me clarification. it is urgent for me. i need to integrate to my development server later it will go to production server
August 9th, 2007 at 12:13 am
Hey man, i am not getting the abc of this.
PLz figure it out inside which tag i have to embedd these contents.
Plz tell me the complete scenario.
i have tomacat and http2.2.4.
My aim is to set the http header in tomcat for all the sites.
Early response is highly appreciated.
August 12th, 2007 at 10:19 am
We can provide (paid) support. Please contact using the contact form if you are interested.
September 2nd, 2007 at 6:48 pm
WOW!!! that is what I was looking… a easy and straightforward way to connect Apache+Tomcat.
I tried to use the mod_jk and I finished with more problems… Do you know if this way have any security problems?
Thank you!!!
September 21st, 2007 at 4:30 am
Works fine!!!!

Thanks !!!!
September 30th, 2007 at 1:47 am
I am using Tomcat 6.0.14 and Apache Httpd 2.0.59 and has no luck at all. Tried this tutorial not work at all. Can someone kindly assist? Thanks !
January 8th, 2008 at 3:19 pm
I am also in the WOW!!! category of response. Very direct and easy to do — especially after following numerous other instructions.
March 11th, 2008 at 3:54 pm
but when i did that it is giving me 503 error
wat wud be the problem
April 23rd, 2008 at 5:47 pm
Add one more to the WOW list… I’m an experienced JAVA developer and I’ve done this with mod_jk before… it is a pain!!! Thanks you so much…