在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 阅读(949)
评论(1) 编辑 收藏