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.
What I currently have is:
<Location "/location/sub">
AllowOverride None
Order Allow,deny
Allow from All
</Location>
<Location "/location/">
AllowOverride None
Order Deny, Allow
Deny from All
Allow from 10.10.10.10
</Location>
The second rule appears to be working but is overriding the first rule.
Does anyone know what I am doing wrong or suggest way to do it?
Thanks