<Host name="www.serv99.com" debug="0" appBase="D:/Tomcat 5.0/webapps/first"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="." debug="0" reloadable="true"/>
</Host>
<Host name="www.yucai-edu.com" debug="0" appBase="D:/Tomcat 5.0/webapps/yucai"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="." debug="0" reloadable="true"/>
</Host>
<Host name="org.serv99.com" debug="0" appBase="D:/Tomcat 5.0/webapps/org"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="." debug="0" reloadable="true"/>
</Host>
<Host name="media.serv99.com" debug="0" appBase="D:/Tomcat 5.0/webapps/media"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="." debug="0" reloadable="true"/>
</Host>
<Host name="cos.serv99.com" debug="0" appBase="D:/Tomcat 5.0/webapps/cos"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="." debug="0" reloadable="true"/>
</Host>
例如: <Host name="cos.serv99.com" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="sentom1_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="sentom1_log." suffix=".txt"
timestamp="true"/>
<Context path="" docBase="D:/Tomcat 5.0/webapps/cos" debug="0" reloadable="true"/>
</Host>
这种写法 工程 会启动 几次
而
<Host name="cos.serv99.com" debug="0" appBase="D:/Tomcat 5.0/webapps/cos"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="." debug="0" reloadable="true"/>
</Host>
在 docbase 中 打点 表示 调用 appBase 中的工程
工程只会被启动一次 ~~