apache

# forbid access to the entire filesystem by default
<Directory />
    Options None
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

# allow access to the filesystem
<Directory /your path>
    Options +Indexes
    Order allow,deny
    Allow from all
</Directory>