DobotJr DobotJr - 6 days ago 6
Apache Configuration Question

Subfolder directory browsing in Apache2

Got a folder at http://myserver/folder/, I have disabled directory browsing for that folder.

But I want to enable directory browsing for the subfolders of http://myserver/folder/

How can I do this??

Thanks.

Answer

here's a working simple solution:

<Directory /path/to/docroot/folder>
        Options -Indexes
</Directory>
<DirectoryMatch  /path/to/docroot/folder/(.)*/>
        Options +Indexes
</DirectoryMatch>
Comments