tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Anderson <cr...@netstatresources.com>
Subject RE: Tomcat + Apache Across Multiple Machines
Date Mon, 14 Aug 2000 20:41:29 GMT
Well, I just started setting up a two tier system. I have a larger sun
machine running tomcat and postgresql on solaris 7. Then I have two smaller
sun machines running apache 1.3.12 on solaris 6. One of the machines does
regular pages while the other handles SSL pages. So far it seems like it is
going to work out nicely. With the use of cvs through ssh along with ant and
tomcat I fell it is a very secure way to set up our customers web sites. The
two web servers handle all the php/perl/html pages that we already have and
then the extra load for the new jsp driven e-commerce sites is handled by
the box on the back end. It seems like JServ was a little quicker and I do
not like to use nfs but all in all I think this is going to be a very
powerful setup in the future. Especially when more load balancing tools are
available.

Craig Anderson
Director of Internet Services
Netstat Resources, LLC.


-----Original Message-----
From: Todd Lipcon [mailto:tlipcon@mercea.net]
Sent: Monday, August 14, 2000 3:32 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: RE: Tomcat + Apache Across Multiple Machines


Out of curiosity, what are people's experiences using a two-tiered setup
like this with Apache/Tomcat? I've heard some people say that sockets
between the two hosts incur more overhead than actually processing the
requests, but I've heard other people say it's a good way to divide the
load of serving a site between static and dynamic pages. Any comments, or
pointers to sites that discuss this issue?

-TOdd

+---------------------------------------------------------------+ 
| Perl CGI scripting                    email tlipcon@csoft.net |
| Web Design                            email tlipcon@csoft.net |
|        My Current Projects:                                   |
| NewsWire				www.squirrelsw.com	|
| JavaGroove				www.squirrelsw.com	|
+---------------------------------------------------------------+

On Mon, 14 Aug 2000, Craig Anderson wrote:

> David,
> 
> 	Thanks for the answer. This setup works perfectly.
> 
> Craig Anderson
> Director of Internet Services
> Netstat Resources, LLC.
> 
> 
> -----Original Message-----
> From: David M. Holmes [mailto:david_m_holmes@yahoo.com]
> Sent: Friday, August 11, 2000 12:03 PM
> To: tomcat-user@jakarta.apache.org
> Subject: RE: Tomcat + Apache Across Multiple Machines
> 
> 
> I'm too busy to try it at the moment, but I'm thinking the following will
> work...
> 
> AddType text/jsp .jsp
> AddHandler jserv-servlet .jsp
> 
> NameVirtualHost 10.12.9.4
> 
> <VirtualHost 10.12.9.4>
> ServerName dev.ilca.hlp.reliantenergy.com
> DocumentRoot D:/Inetpub/webs/dev/dev.ilca.hlp.reliantenergy.com
> ApJServDefaultHost someOtherHost
> ApJServDefaultPort 8007
> ApJServMount /servlet /root
> ErrorLog logs/error_dev.ilca.hlp.reliantenergy.com.log
> CustomLog logs/access_dev.ilca.hlp.reliantenergy.com.log common
> </VirtualHost>
> 
> --- Craig Anderson <craig@netstatresources.com> wrote:
> > Markus,
> > 
> > 	I know how to mount an apache virtual directory to run servlets on
> > the tomcat machine, that is the easy part. What I want to do is tell
> apache
> > that any jsp anywhere gets served by the tomcat box, any other request
> > period should come from the apache box. This is what I am having trouble
> > setting up.
> > 
> > 	There should be something in the the apache config like this:
> > 
> > 	ApJServMount /servlet ajpv12://server.domain.com/root
> > 	AddHandler .jsp /servlet/gnujsp
> > 
> > 	With this setup all jsps would be handled by gnujsp on a JServ
> > machine, I need to know how to do this using tomcat. It is possible
> however
> > that I missunderstood your answer. Any ideas?
> > 
> > Craig Anderson
> > Director of Internet Services
> > Netstat Resources, LLC.
> > 
> > 
> > -----Original Message-----
> > From: Markus Colombo [mailto:markus.colombo@customercare.ch]
> > Sent: Friday, August 11, 2000 1:29 AM
> > To: tomcat-user@jakarta.apache.org
> > Subject: Re: Tomcat + Apache Across Multiple Machines
> > 
> > 
> > Hi
> > 
> > You need to direct all servlet requests to your tomcat box with
something
> > like:
> > 
> > #the following line is used, when tomcat runs on another machine...
> > ApJServMount /servlet ajpv12://tomcat_Box/root
> > 
> > HTH
> > 
> > Markus Colombo
> > 
> > Craig Anderson wrote:
> > 
> > > Hello -
> > >
> > >         I currently have two machines set up to do all of my
> java/internet
> > > work. The first is running Solaris 6 and apache 1.3.12 with mod_jserv
> and
> > is
> > > set up to handle about 30 virtual hosts. The second is running Solaris
> 7,
> > > tomcat 3.1, and postgres 7.0.2. I want the second box to handle all
> > servlet
> > > and jsp files for the first. I have an nfs link set up between the two
> and
> > I
> > > can put all of the jsp's and servlets onto the box running tomcat and
> put
> > > them where they need to be. However, here is how I would like it all
to
> > > work, and I used to be able to do this with gnujsp:
> > >
> > >         All php, html, perl and other files will get served off of the
> > > apache box. Then I would like to set up apache to send all jsp
requests
> to
> > > the tomcat server so this would happen:
> > >
> > >         http://server.domain.com/index.html is located on the apache
box
> > and
> > > gets served by apache.
> > >         http://server.domain.com/index.jsp is located on the tomcat
box
> > and
> > > when the apache box gets a request for this file it hands the request
> off
> > to
> > > the tomcat box in typical mod_jserv fashion.
> > >
> > >         I set up a context like this:
> > >         <Context path="/" docBase="vhosts/devel/docroot" debug="0"
> > > reloadable="true" ></Context>
> > >
> > >         So, under this scenario, index.jsp would be located on the
> tomcat
> > > box under vhosts/devel/docroot/index.jsp. The problem is, I cannot
> figure
> > > out how to set up the vhost entry on apache to just hand off all jsp
> files
> > > to the tomcat box. Anyone do anything like this? Any tips? The
> > documentation
> > > seems to still be a bit scarce.
> > >
> > > Craig Anderson
> > > Director of Internet Services
> > > Netstat Resources, LLC.
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Kick off your party with Yahoo! Invites.
> http://invites.yahoo.com/
> 

Mime
View raw message