Forum Moderators: phranque
<Directory "/my/server/path/htdocs">
Order deny,allow
Deny from all
Allow from 155.1.1.0/24
</Directory>
<Directory "/my/server/path/htdocs">
Order deny,allow
Deny from all
Allow from 155.1.1.0/24
</Directory>
#
# Override the above less-specific-directory restriction to allow all to access files in /additional-subdirectory-path/
<Directory "/my/server/path/htdocs/additional-subdirectory-path">
Allow from all
</Directory>
<Directory> (group 1 above) is processed in the order shortest directory component to longest. So for example, <Directory /var/web/dir> will be processed before <Directory /var/web/dir/subdir>. If multiple <Directory> sections apply to the same directory they are processed in the configuration file order.