蛋撻王子 发表于 2003-9-17 10:39

请教关于Tomcat的虚拟目录设置

我用的是Tomcat4.0,在设置虚拟目录的时候发现怎么都不生效,请哪位高手把自己的server.xml相关部分的内容贴出来让小弟参考一下吧,谢谢了。

爱上狼的羊 发表于 2003-9-23 23:26

tomcat3,目录设在d:\trade\web,自己看吧,红色字体的地方:

<Context path="/"
               docBase="d:\trade\web"
               crossContext="true"
               debug="0"
               reloadable="true" >
      </Context>

      <!-- Admin context will use tomcat.core to add/remove/get info about
             the webapplications and tomcat internals.
             By default it is not trusted - i.e. it is not allowed access to
             tomcat internals, only informations that are available to all
             servlets are visible.

             If you change this to true, make sure you set a password.
          -->
      <Context path="/admin"
               docBase="webapps/admin"
               crossContext="true"
               debug="0"
               reloadable="true"
               trusted="false" >
      </Context>

      <!-- Virtual host example -
             In "127.0.0.1" virtual host we'll reverse "/" and
             "/examples"
             (XXX need a better example )
             (use"http://127.0.0.1/examples" )
      <Host name="127.0.0.1" >
         <Context path=""
                  docBase="webapps/examples" />
         <Context path="/examples"
                  docBase="webapps/ROOT" />
      </Host>
         -->

    </ContextManager>
</Server>

[此贴子已经被作者于2003-9-23 15:31:46编辑过]

joe_233 发表于 2003-11-3 04:26

JAVA的都被你杀光了``呵呵``楼主的问题很多地方都有得教的
页: [1]
查看完整版本: 请教关于Tomcat的虚拟目录设置