title: customize web application root context in apache
body: <p>I have web application abc.war and I want to deploy it on Apache Tomcat.
  The problem is that, by default, the path to this application is <b><a href="http://&lt;server-name&gt;/abc" rel="nofollow noreferrer">http://&lt;server-name&gt;/abc</a></b>
  but I want to access it as <b><a href="http://&lt;server-name&gt;/xyz" rel="nofollow noreferrer">http://&lt;server-name&gt;/xyz</a></b>.</p>
  
  <p>I put into WAR's META-INF folder the file context.xml that is :</p>
  
  <p><code>
   &lt;Context path=&quot;/xyz&quot; docBase=&quot;abc&quot; override=&quot;true&quot; /&gt;
  </code></p>
  
  <p>The application WAR abc.war is located under <b>%CATALINA_HOME%\webapps</b> and it is extracted to <b>%CATALINA_HOME%\webapps\abc</b> folder.</p>
  
  <p>Also, while deployment, the file context.xml from <b>abc/META-INF</b> is copied to <b>%CATALINA_HOME%\conf\Catalina\localhost</b> as abc.xml</p>
  
  <p>It seems that this should work, but I still can't access my application through <b><a href="http://&lt;server-name&gt;/xyz" rel="nofollow noreferrer">http://&lt;server-name&gt;/xyz</a></b>, but only through <b><a href="http://&lt;server-name&gt;/abc" rel="nofollow noreferrer">http://&lt;server-name&gt;/abc</a></b></p>
  
  <p>In addition, I still see in apache log the following line while deployment of abc.war : 
  <b>
  context path = /abc
  </b></p>
  
  <p>Could anybody, please, help while this doesn't work, or tell if there is any way of deploying of web application on apache such that application could be accessed by customized path (that does not relate to war-file name) ?</p>
  
  <p>Thanks in advance.</p>