title: Change the path of application in Tomcat 6
body: <p>I have my web application whose name is <code>myApp.war</code>. I copy my war file in <code>$CATALINA_BASE/webapps</code>. Now I can open my site using the URL:</p>
  
  <pre><code>http://localhost:8080/myApp/
  </code></pre>
  
  <p>However I want to change the path of my application (for example: <code>newName</code>), so I add a file <code>ROOT.xml</code> in <code>$CATALINA_BASE/conf/Catalina/localhost</code>.</p>
  
  <p>Here is the code :</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;Context docBase="myApp" path="/newName" debug="0" reloadable="true"/&gt;
  </code></pre>
  
  <p>Now I use the new URL:</p>
  
  <pre><code>http://localhost:8080/newName/ 
  </code></pre>
  
  <p>but it doesn't work.</p>