Solved

IntegratingTomcat 4.1 and Apache 2.0.59

Posted on 2008-10-06
2
153 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
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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Suggested Solutions

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…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

947 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

21 Experts available now in Live!

Get 1:1 Help Now