On Tue, 13 Mar 2001, aras wrote:
> Thanks for the reply
>
> Let me rephrase to see if I understand.
>
> Note: I do have httpd.conf with the appropriate entries. I got it
> from
> http://www.ccl.net/cca/software/UNIX/apache/apacheRH7.0httpd/README.html
> Which is the best write up I've seen to date on TomCat. Anyway, I
> have a Listen 80 in httpd.conf
>
> so your saying that if I http://localhost I should see the index.htm
> that is under my doc root of Apache and if I do a
> http://localhost:8080 I should get the index.htm of TomCat. When I
> done writing this I look over server.xml or web.xml to try to see
> how that context is stated.
>
> Are you also saying that if I do a http://locahost/mywebapp and if
> mywebapp was declared in ????? then Apache would pass control over
> to TomCat.
>
> Some of these statements may not be accurate in their entirity, I
> just trying to get a better 40,000 foot view. What I wouldn't give
> for a block diagram.
That looks basically correct to me (especially if you're only
considering the 40,000 foot view :-). Lots of details to work out
(like the specific directives and what exactly goes in the server.xml
and web.xml files), but basically on track.
FWIW, the way I'm using it, I disabled the tomcat standalone server
(by commenting out the appropriate Connector tag in server.xml) and
only use it under apache.
BTW, this is the place I meant when I said it was documented on the
tomcat/jakarta site:
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/uguide/tomcat_ug.html
> Milt Epstein wrote:
>
> > On Tue, 13 Mar 2001, aras wrote:
> >
> > > Quick question. Embelish or not as you see fit.
> > >
> > > I have all the samples running but I still a bit fuzzy about the
> > > port stuff. Before I go hog wild into writing some servlet code
> > > There is a piece I still havn't grasped.
> > >
> > > I kinda understand that by calling apache with *http://localhost:8080*
> > > it returns the index.htm from TomCat
> > >
> > > Doesn't Apache determine by the URI if it should serve or send it to
> > > TomCat? In my ignorance, I really don't even know why were using
> > > 8080, is it just because "the root below 1024 thing"? I have an
> > > index.htm in my Apache document root that is a straight static html
> > > page, very much like the index page in TomCat. I was expecting that
> > > if I called like: *http://localhost* I'd get that file--- If there
> > > was some form of added URL e.g *http://localhost/examples-test or
> > > http://localhost/blah/foo.jsp, it (Apache) would tell TomCat to go
> > > elsewhere.
> >
> > If you run Tomcat as it comes "out of the box", it will run a
> > standalone server on port 8080, which has nothing to do with Apache.
> > Anything sent to that port will only go to Tomcat, not Apache.
> >
> > If you want to use Tomcat under Apache, you need to set up mod_jserv
> > or mod_jk, and put appropriate directives in Apache's httpd.conf
> > (perhaps kept in a separate file, e.g. tomcat.conf, and included via
> > an "Include" directive). Then you wouldn't specify port 8080 in your
> > URL's (instead specify the port for wherever Apache's running, or
> > leave it out if it's using the default port(s)).
> >
> > This is documented at the Tomcat site (although it is confusing).
> >
> > Milt Epstein
> > Research Programmer
> > Software/Systems Development Group
> > Computing and Communications Services Office (CCSO)
> > University of Illinois at Urbana-Champaign (UIUC)
> > [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]