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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

redirect from tomcat to an other tomcat

Status
Not open for further replies.

fuadhamidov

Programmer
Sep 22, 2003
98
TR
hi

i have several project in different machine.

some projects run on java 1.3.x and others run on 1.4.x.
so two tomcat server have been installed.

i have one internet connection

i want to access both tomcat server ( my all application in both java version ) from one IP.

now i ask

is there any way to redirect one tomcat server to others.
if yes how.

in shortly i want to know true version of
<Context path="/Computer1" docBase="http:\\otherComputer1"/>

thanks for any help

 
One IP, different machines ??? Don't think so ...

Do you mean you have a single WAN IP (ie your router), with several LAN machines on unique IPs ?

ASFAIK You cannot tell tomcat to load a webapp from an IP address - the code must be local to the machine ....

If you want to access the two unique LAN IP addresses/machines from one WAN IP, then you must either set up multiple hosts on tomcat (ie and pointing at separate wepapps) or run the tomcat installs on different IPs (as you can only forward traffic from one distict IP port to a distinct unique machine from the router).

Please clarify what you have and require.

--------------------------------------------------
Free Database Connection Pooling Software
 
Do you mean you have a single WAN IP (ie your router), with several LAN machines on unique IPs ?

>> Yes


i can't understand your solution
can you clarify

you must set up multiple hosts on tomcat
and
forward traffic from one distict IP port to a distinct unique machine
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top