Solved

IntegratingTomcat 4.1 and Apache 2.0.59

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Leverage Browser Caching 7 66
Hosting application in Apache and Tomcat 1 102
Internal wordpress pages 404 5 42
How to move and access a folder outside of the root folder 4 85
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…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

816 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

8 Experts available now in Live!

Get 1:1 Help Now