Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache2 + Tomcat 4.1 on different hosts?

Status
Not open for further replies.

enigmasoldier

IS-IT--Management
Aug 17, 2005
3
US
Hello,

I am using Apache2 + Tomcat 4.1 + mod_jk2 and just sucessfully set up virtual hosting on my personal laptop for development. Now, the management wants me to put the same setup on the development servers and I ran into a major problem.

Apache looks for jsp pages in it's DocumentRoot and if the host is in the workers2.properties file, it sends the requests over to tomcat. My Apache web server and Tomcat Application server are 2 physically different hosts, is it possible to enable virtual hosting with Tomcat through Apache when these are on different hosts? My first thought was to export the filesystem using NFS, but that kills performance and the Change Control Management Board frowned on the idea. I will be doing this on HP-UX 11.11, thanks for your help!
 
Don't you just set the appropriate host entry in your Apache conf ?

EG :

Instead of :

<Location "/jsp-examples">
JkUriSet worker ajp13:localhost:8009
</Location>

use :

<Location "/jsp-examples">
JkUriSet worker ajp13:SOME_OTHER_SERVER_IP:8009
</Location>

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top