?
Solved

IntegratingTomcat 4.1 and Apache 2.0.59

Posted on 2008-10-06
2
Medium Priority
?
168 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 1500 total points
ID: 22656602
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
ID: 31503326
Thanks  for support Urgoll
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses
Course of the Month16 days, 2 hours left to enroll

850 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