title: How can I map multiple contexts to the same war file in Jetty?
body: <p>Is it possible to map multiple contextPaths to one WAR file in Jetty? For example</p>
  
  <pre><code>${jetty.home}/webapp/bookstore.war
  </code></pre>
  
  <p>And then I'd like to have two different contexts pointing to this war. The reason being some configuration differences depending which URL is reached.</p>
  
  <pre><code>&lt;Configure class="org.eclipse.jetty.webapp.WebAppContext"&gt;
      &lt;Set name="contextPath"&gt;/magazines&lt;/Set&gt;
      &lt;Set name="war"&gt;&lt;SystemProperty name="jetty.home" default="."/&gt;/webapps/bookstore.war&lt;/Set&gt;
  &lt;/Configure&gt;
  
  &lt;Configure class="org.eclipse.jetty.webapp.WebAppContext"&gt;
      &lt;Set name="contextPath"&gt;/books&lt;/Set&gt;
      &lt;Set name="war"&gt;&lt;SystemProperty name="jetty.home" default="."/&gt;/webapps/bookstore.war&lt;/Set&gt;
  &lt;/Configure&gt;
  </code></pre>