在Tomcat服务器发布两个项目 CRM OA
server.xml配置文件
<Context docBase="C:\crm" path="/crm" />
<Context docBase="C:\oa" path="/oa" />
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<!-- 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
Note: The pattern used is equivalent to using pattern="common" -->
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
<Context docBase="C:\crm" path="/crm" /> <Context docBase="C:\oa" path="/oa" />
</Host>
保存server.xml文件,并重起服务,用浏览器来访问这两个项目