If you want to deny public access to a parent location (let’s say /projects/), but allow public access to a sub-location (/projects/myproject/), use the following statement in httpd.conf:
<Location /projects>Order allow,deny</Location> <Location /projects/myproject>Order deny,allow</Location>
(can also be used for <Directory> statements etc.)
Note that the URL of the sub-location must include a trailing slash (e.g. “https://news.numlock.ch/projects/myproject/”)
Great article.
Thanks