工大后院

 找回密码
 加入后院

扫一扫,访问微社区

QQ登录

只需一步,快速开始

搜索
查看: 1425|回复: 2

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

[复制链接]
发表于 2003-9-17 10:39 | 显示全部楼层 |阅读模式
我用的是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编辑过]

回复

使用道具 举报

发表于 2003-11-3 04:26 | 显示全部楼层
JAVA的都被你杀光了``呵呵``楼主的问题很多地方都有得教的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 加入后院

本版积分规则

QQ|Archiver|手机版|小黑屋|广告业务Q|工大后院 ( 粤ICP备10013660号 )

GMT+8, 2024-5-16 21:05

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

快速回复 返回顶部 返回列表