• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat on winxp local machine and apache on linux server(dedicated ip)

 
indika prasad kularathne
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi every one..

my tomcat server run on win2000 on local network machine.
Our web server run on redhat 9 using apache(www.ourdomain.com).

Now i want to publish my web pages(created by using jsp) located on win2000 machine, to the out side through apache webserver(www.ourdomain.com).
ex:- when some one hit www.ourdomain.com/mypage it should go to the my local machine webpages.(jsp)

please help me..

thanks..
 
Rick Beaver
Ranch Hand
Posts: 464
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Changed - I thought of something else.

1.Start your Windoze 2k box up on a different port number to the external site (which is probably 80, so say 90 for the internal one).
2. Set up NAT on your external router to route traffic to port 90 on your internal machine.
3. Add the following line to the head of the index file at http://www.ourdomain.com/mypage/

<META HTTP-EQUIV=refresh CONTENT="0, url=www.ourdomain.com:90/yourpagefromdocroot.jsp">

This should do it I think
[ January 12, 2005: Message edited by: Nick Leaver ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic