title: Apache Deny <Location> but allow to sub Location
body: <p>I am using Apache2.2 as the front end to a tomcat server.  I want to restrict access to a location however allow all access to a sub-location but am having some trouble.</p>
  
  <p>What I currently have is:</p>
  
  <pre><code>&lt;Location "/location/sub"&gt;  
      AllowOverride None  
      Order Allow,deny  
      Allow from All  
  &lt;/Location&gt;  
  
  &lt;Location "/location/"&gt;  
   AllowOverride None  
   Order Deny, Allow  
   Deny from All  
   Allow from 10.10.10.10   
  &lt;/Location&gt;
  </code></pre>
  
  <p>The second rule appears to be working but is overriding the first rule.</p>
  
  <p>Does anyone know what I am doing wrong or suggest way to do it?</p>
  
  <p>Thanks</p>