Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Servers > Run tomcat on local machine thrugh apache web server

Forgot Password?
 Servers   Anything server related, Apache, MySQL, Samba, server security, sendmail, exim, etc

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 01-09-2005   #1 (permalink)
Just Joined!
 
Join Date: Jan 2005
Posts: 3
Send a message via Yahoo to indika
Run tomcat on local machine thrugh apache web server

Hi every one..

I want to publish my jsp pages created on the winxp machin located on the local pc. i use ip address for the local machine as xx.yy.zz. We have only one dedicated ip and one domain name. it hosted on redhat linux server using apache. Domain name is www.myname.com.
it works fine.
Now i want to host my webpage located on the local machine. ie, when user hit www.mydomain.com it should forward to the local server running on tomcat.

please help me..

thanks..
indika is offline  


Reply With Quote
Old 01-09-2005   #2 (permalink)
Linux Engineer
 
jledhead's Avatar
 
Join Date: Oct 2004
Location: North Carolina
Posts: 1,030
I posted a nice guide here for having apache be the frontend for jboss, it works just the same with tomcat with very little change (since jboss runs an embedded tomcat)
http://www.linuxforums.org/forum/top...tml&highlight=
jledhead is offline   Reply With Quote
Old 01-11-2005   #3 (permalink)
Just Joined!
 
Join Date: Jan 2005
Posts: 3
Send a message via Yahoo to indika
Thanks..
but it was not helpfull to me according to my requirment. i want to run my website on local machine(using tomcat server) via the apache webserver on dedicated server.
thanx..
indika is offline   Reply With Quote
Old 01-11-2005   #4 (permalink)
Linux Engineer
 
jledhead's Avatar
 
Join Date: Oct 2004
Location: North Carolina
Posts: 1,030
Quote:
Originally Posted by indika
Thanks..
but it was not helpfull to me according to my requirment. i want to run my website on local machine(using tomcat server) via the apache webserver on dedicated server.
thanx..
if you say so, but it sounds like exactly what you are talking about. for the purposes of the document there is no different between jboss and tomcat, the only thing you have to do differently is creating the startup scripts for tomcat, which you probably already have.

the document describes running an apache server to server html and php pages, and to be the frontend for .jsp and forward requests for jsp to tomcat without the user/client even knowing.

sounds like exactly what you want. what out of that specifically is different then your "requirements"?
jledhead is offline   Reply With Quote
Old 01-11-2005   #5 (permalink)
Just Joined!
 
Join Date: Jan 2005
Posts: 3
Send a message via Yahoo to indika
thanks..but..

Thanks sir..
As i guest your reply is ok for the tomcat which is run on the same pc.(or one server/dedicated server)
i want to run my jsps located on local machine, to the out side using above mentioned server.

thanks..
indika is offline   Reply With Quote
Old 01-11-2005   #6 (permalink)
Linux User
 
Join Date: Oct 2004
Location: /dev/random
Posts: 404
Take a look at apache's mod_proxy and/or mod_jk2 modules.
mod_jk2 allows you to let apache forward the jsp/servlet requests to the tomcat server and serve only HTML/PHP/whatever stuff it is designed to serve.

The documentation on mod_jk/mod_jk2 is included in the regular tomcat documentation.

Here are the links:
Tomcat 5.5 docs : http://jakarta.apache.org/tomcat/tomcat-5.5-doc/
JK 2 docs : http://jakarta.apache.org/tomcat/connectors-doc/
__________________
The Unforgiven
Registered Linux User #358564
the_unforgiven is offline   Reply With Quote
Old 01-12-2005   #7 (permalink)
Just Joined!
 
Join Date: Feb 2004
Location: Bangalore
Posts: 14
Send a message via Yahoo to bittukk
Hi,

U have to link ur apache server with the tomcat server by using mod_jk module.

Then in your jsp programes call the local machine's ip and it will work....
bittukk is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 09:53 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2