posts - 17,  comments - 12,  trackbacks - 0

在tomcat下conf的sever.xml中 找到

<Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" 
               prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
        -->

<Context path="/wyz" docBase="D:\work space\wyz"  reloadable="true"  >
</Context>

 

 

      </Host>

在其中加入

<Context path="/虚拟路径名" docBase="应用程序实际地址"  reloadable="true"  >
</Context>即可

posted on 2009-03-12 16:34 asiawang 阅读(933) 评论(1)  编辑  收藏

FeedBack:
# re: 如何在tomcat6.0里配置虚拟路径
2011-07-25 14:02 | qhc
谢谢你的恭喜 搞定了 一个问题  回复  更多评论
  

只有注册用户登录后才能发表评论。


网站导航:
 
<2009年3月>
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

常用链接

留言簿(3)

随笔档案

文章档案

友情连接

搜索

  •  

最新评论

阅读排行榜