In addition to nesting Context elements inside a Host element, you can also store them:
$CATALINA_HOME/conf/context.xml file: the Context element information will be loaded by all webapps $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default file: the Context element information will be loaded by all webapps of that host $CATALINA_HOME/conf/[enginename]/[hostname]/ directory /META-INF/context.xml inside the application files Note, the context definition file put into war file MUST be named as context.xml!
聯(lián)系客服