Hi Zhi,

I'm not sure why some subfolders are unreachable, though
without seeing the "uriworkermap" file contents its hard
to guess.  Thanks for rediscovering the case sensitivity
issue.  I had forgotten about that.

Note: The proper way to map the "root" context is to
specify path="" instead of path="/".  path="" establishes
the context as the "default" context, where path="/" makes
the context just another web app.  However, off the top
of my head, I can't name a noticeable side effect of this.
This doesn't mean there isn't one.

Cheers,
Larry

> -----Original Message-----
> From: Zhi Shen [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 07, 2001 5:17 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: web app in root directory
> 
> 
> I have my IIS pointing to "TOMCAT_HOME\webapps\myapp" and also set
> server.xml to 
> 
> <Context path="/" 
>    docBase="webapps/myapp" 
>    crossContext="true"
>    debug="0" 
>    reloadable="true" > 
> </Context>
> 
> But there are some subfolders that are unreachable.  I will 
> try to point
> everything to ROOT and see what happens.
> 
> -zhi
> 
> 
> -----Original Message-----
> From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 07, 2001 4:49 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: web app in root directory
> 
> 
> I assume your IIS Home Directory is set to something other
> than "TOMCAT_HOME\webapps\ROOT", such as the IIS default
> "C:\Inetpub\wwwroot".  Since IIS will serve static resources,
> a URL like http:/x.com/images/index.html will look for a
> file named "C:\Inetpub\wwwroot\images\index.html" which
> likely doesn't exist.
> 
> I'm not familiar with IIS enough to know how well
> isapi_redirect can take control of the "root" context.
> You can try pointing IIS's Home Directory to
> "TOMCAT_HOME\webapps\ROOT", which should allow those
> missing pages to be found.
> 
> I can't tell if http://x.com/admin/ showing Tomcat's admin
> webapp should be expected without seeing the uriworkermap
> file you are using.  If the right statements are present
> this behavior would be normal.
> 
> Note, the comments above makes some assumptions about your
> configuration that haven't actually been specified. For
> example, I am assuming you are using a version of
> Tomcat 3.2.x.
> 
> Cheers,
> Larry
> 
> > -----Original Message-----
> > From: Zhi Shen [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 07, 2001 3:37 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: web app in root directory
> > 
> > 
> > I'm using IIS4.0 with Tomcat using isapi_redirect.
> > 
> > -----Original Message-----
> > From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 07, 2001 3:03 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: web app in root directory
> > 
> > 
> > Since you are not including a port in the URL, it
> > would appear that you are using Tomcat with Apache
> > or some other web server.  If so, which one?
> > 
> > Both Tomcat and the other web server have their own
> > idea of what the "root" context is.  This can cause
> > resources to not be visible because the wrong "root"
> > context is being accessed.
> > 
> > Please provide more detail about how Tomcat and
> > possibly the other web server are configured.
> > 
> > Cheers,
> > Larry
> > 
> > > -----Original Message-----
> > > From: Zhi Shen [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, August 07, 2001 2:44 PM
> > > To: '[EMAIL PROTECTED]'
> > > Subject: web app in root directory
> > > 
> > > 
> > > Hi,
> > > 
> > > I'm interested in putting my web app in the root directory so 
> > > that people
> > > can get to it via http://x.com/index.html instead of
> > > http://x.com/myapp/index.html
> > > 
> > > 
> > > Whenever I change the server.xml file:
> > > 
> > > <Context path="" 
> > >   docBase="webapps/myapp" 
> > >   crossContext="true"
> > >   debug="0" 
> > >   reloadable="true" > 
> > > </Context>
> > > 
> > > Some of my subdirectories are not found, 
> > > http:/x.com/images/index.html and
> > > also whenever I goto admin http://x.com/admin/ I get the 
> > > Tomcat admin pages.
> > > 
> > > 
> > > Does anyone know how to configure this correctly? Thanks 
> in advance.
> > > 
> > 
> 

Reply via email to