Solved

IntegratingTomcat 4.1 and Apache 2.0.59

Posted on 2008-10-06
2
150 Views
Last Modified: 2013-12-02
In  windows 2003 operating system, I have installed tomcat 4.1 and apache  2.0.59 both are working fine, now  I want to connect tomcat 4.1 with apache web server 2.0.59
can any one please help me out to do this please provide me a step by step process of how to do this.

Thanks in Advance!

RRR
0
Comment
Question by:Rajarr
2 Comments
 
LVL 4

Accepted Solution

by:
urgoll earned 500 total points
Comment Utility
There are many ways to do this, but probably the easiest is to use apache's mod_proxy.

Assuming that your Tomcat listens on port 8080 and that you want to give access to Tomcat's /application URI, then you need to add the following snippet to your apache's configuration (or virtualhost configuration, depending on your specific goal). What this will do is for every HTTP request to /application/somethingorother to your web server, apache will turn around and forward the request to tomcat (that's the proxypass part). It will then parse the resulting answer, and replace any mention of tomcat in the header and replace it with its own URL and host name, so that the end-client does not know a proxy is in the loop (this is the ProxyPassReverse part).

More complicated (but probably more performing) would be to install mod_jk which is another language Tomcat can speak which has lower overheads than HTTP.

Let me know how it goes,
hope this helps.

Christophe
ProxyPass /application http://localhost:8080/application

ProxyPassReverse /application http://localhost:8080/application

Open in new window

0
 

Author Closing Comment

by:Rajarr
Comment Utility
Thanks  for support Urgoll
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now