context.xml

1 全局作用域:${CATALINA_HOME}/conf/context.xml

<Context>

    <!-- Default set of monitored resources -->
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
    <!-- 引用具体某个应用的WEB-INF/web.xml-->
    <!-- Uncomment this to disable session persistence across Tomcat restarts -->
    <!-- <Manager pathname="" /> -->

    <!-- Uncomment this to enable Comet connection tacking (provides events on session expiration as well as webapp lifecycle) -->
    <!-- <Valve className="org.apache.catalina.valves.CometConnectionManagerValve" /> -->

</Context>

2 指定的虚拟主机可用:${enginename}/${hostname}/context.xml.default

3 指定应用可用${CATALINA_HOME}/conf/${enginename}/${hostname}/${appname}.xml

你可能感兴趣的:(tomcat)