title: Deploying a web application using a context on tomcat 7
body: <p>Seems I can't figure out how to deploy a web application to a path I want on tomcat 7. Here are the details:</p>
  
  <ol>
  <li>I have a war file called myapp.war which I want to be located under /home/user/myapp.war (not where tomcat is installed).</li>
  <li>I would like to have it deployed on tomcat under the path /api/1/</li>
  </ol>
  
  <p>If I place myapp.war directly under the webapps directory of tomcat it will deploy, but under the path /myapp, which is not what I need.
  I'm also trying to avoid editing tomcat's server.xml file.</p>
  
  <p>I understand there are ways to do it using context files, but anything I tried just didn't work, looks like I'm missing something. If someone could describe the precise configuration to have this working it will be most appreciated.</p>
  
  <p>Thanks! Ariel</p>