title: Externalizing Tomcat webapp config from .war file
body: <p>I am having trouble with configuring a webapp in Tomcat 7. In my WAR file, there is a properties file <code>myApp/WEB-INF/classes/myProps.props</code>, and it contains environment-specific properites. I am trying to override that configuration file on the server, so that the same WAR file will deploy to multiple environments.</p>
  
  <p>I heard there was a way to do this using replacement config files in <code>tomcat/conf/Catalina/myApp</code>. This is the method I am having trouble figuring out.</p>
  
  <p>Also, <code>myApp.war</code> is one of many running on the same Tomcat server, and it does not run as localhost. I want to be able to solve this problem for several of the webapps.</p>
  
  <pre><code>Server version: Apache Tomcat/7.0.23
  Server built:   Nov 20 2011 07:36:25
  Server number:  7.0.23.0
  OS Name:        Linux
  </code></pre>