设置好了<Host>和<Context>以后,为什莫访问根目录就能访问,访问次级目录必须加上虚拟路径的名才能访问。比如说虚拟目录名是aa,如果访问aa下的bb目录下的文件就得http://www.aa.com/aa/bb/index.jsp
怎样弄成http://www.aa.com/bb/index.jsp就可以访问???

解决方案 »

  1.   

    把你的aa context 的设置: path=""The context path of this web application, which is matched against the beginning of each request URI to select the appropriate web application for processing. All of the context paths within a particular Host must be unique. If you specify a context path of an empty string (""), you are defining the default web application for this Host, which will process all requests not assigned to other Contexts.
      

  2.   

    <Context path="" reloadable="true" docBase="X:\aa" />
      

  3.   

    要改<host>前面的一些东西的.但具体我不记得了,你查一下吧