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]