日期:2014-05-18  浏览次数:20761 次

Tomcat 6.0如何配置虚拟目录
我是新手刚装了Tomcat   6.0   但发现的配置文件server.xml   与Tomcat5.0的配置文件有所不同,所以我配置虚拟目录几次都没有成功。请大虾帮忙说一下,如下为Tomcat   6里server.xml文件的内容:
<!--   Note:     A   "Server "   is   not   itself   a   "Container ",   so   you   may   not
          define   subcomponents   such   as   "Valves "   at   this   level.
          Documentation   at   /docs/config/server.html
  -->
<Server   port= "8005 "   shutdown= "SHUTDOWN ">

    <!--APR   library   loader.   Documentation   at   /docs/apr.html   -->
    <Listener   className= "org.apache.catalina.core.AprLifecycleListener "   SSLEngine= "on "   />
    <!--Initialize   Jasper   prior   to   webapps   are   loaded.   Documentation   at   /docs/jasper-howto.html   -->
    <Listener   className= "org.apache.catalina.core.JasperListener "   />
    <!--   JMX   Support   for   the   Tomcat   server.   Documentation   at   /docs/non-existent.html   -->
    <Listener   className= "org.apache.catalina.mbeans.ServerLifecycleListener "   />
    <Listener   className= "org.apache.catalina.mbeans.GlobalResourcesLifecycleListener "   />

    <!--   Global   JNDI   resources
              Documentation   at   /docs/jndi-resources-howto.html
    -->
    <GlobalNamingResources>
        <!--   Editable   user   database   that   can   also   be   used   by
                  UserDatabaseRealm   to   authenticate   users
        -->
        <Resource   name= "UserDatabase "   auth= "Container "
                            type= "org.apache.catalina.UserDatabase "
                            description= "User   database   that   can   be   updated   and   saved "
                            factory= "org.apache.catalina.users.MemoryUserDatabaseFactory "
                            pathname= "conf/tomcat-users.xml "   />
    </GlobalNamingResources>

    <!--   A   "Service "   is   a   collection   of   one   or   more   "Connectors "   that   share
              a   single   "Container "   Note:     A   "Service "   is   not   itself   a   "Container ",  
              so   you   may   not   d