If you remember, I and at least one other person were trying to set
tomcat up so that a URL of the form

  http://my.domain.com/blah

would invoke a specific servlet in the "blah" context.  We were having
trouble doing this, and the closest we could come was using

  http://my.domain.com/blah/blah

or

  http://my.domain.com/blah/servlet/blah

Well, it looks like I figured out how to do this.

As it turned out, the problem (for me at least), wasn't with how I had
tomcat set up -- you see, it wasn't even getting to tomcat, it was
being handled by apache.  I had just been using the apache/jserv
directives as per the sample and documentation on the tomcat page.  In
particular, the only relevant ApJServMount directive I had was

        ApJServMount /blah/servlet /blah

I'm not sure of the exact syntax/semantics of the ApJServMount
directive, but I believe it indicates that URIs of certain forms (e.g.
/blah/servlet) should be passed to the specified tomcat context (e.g.
blah).  So, since all I had was the above directive, only URIs that
started with /blah/servlet was being passed to tomcat, and that of
course does not include the URI /blah.  So I added another directive

        ApJServMount /blah /blah

and after that, I was able to use a URL of the form

  http://my.domain.com/blah

as I originally wanted to.

Hope this helps someone else.  And if someone understands better
exactly how the ApJServMount directive works, please feel free to fill
in the details.

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]

Reply via email to