title: URL matches several Locations. How to perform instructions from the first Location only?
body: <p>We have following configuration in Apache httpd.conf:</p>
  
  <pre><code>&lt;Location /app/srv&gt;
     ...   
     ProxyPass http://localhost:123/srv
     ProxyPassReverse http://localhost:123/srv
  
     Header edit Set-Cookie JSESSIONID srv.${ENV}.JSESSIONID
     RequestHeader edit Cookie srv.${ENV}.JSESSIONID JSESSIONID
  &lt;/Location&gt;
  
  #Following instructions do not work!
  #ProxyPass /app/srv !
  #ProxyPass /app !
  
  &lt;Location /app &gt;
     ...
     ProxyPass http://localhost:123/app
     ProxyPassReverse http://localhost:123/app
  
     Header edit Set-Cookie JSESSIONID app.${ENV}.JSESSIONID
     RequestHeader edit Cookie app.${ENV}.JSESSIONID JSESSIONID
  &lt;/Location&gt;
  </code></pre>
  
  <p>As far as I can see in case of request with context path /app/srv coockie JSESSIONID will be edited two times.<br>
  And in result will be renamed to <strong>srv.${ENV}.app.${ENV}.JSESSIONID</strong>  </p>
  
  <p>But I need to rename coockie to <strong>srv.${ENV}.JSESSIONID</strong>  </p>
  
  <p>I can see such behavior on one our testing box.<br>
  Is it possible to stop processing after "Location /app/srv" directive?</p>
  
  <p>I tried to add instruction "<strong>ProxyPass /app/srv !</strong>" after directive "<strong>Location /app/srv</strong>" but it does not help.  </p>
  
  <p><strong>UPDATE:</strong><br>
  I do not know what full context path could be for /app.<br>
  It could be /app/page1, /app/page2, etc.<br>
  I only know that there exist /app/srv and /app/something context paths.<br>
  And I would like to have different instructions for /app/srv and /app/something context paths.  </p>