Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 335
DobotJr Avatar asked Jul 13 '11 22:07

DobotJr


People also ask

How do I make Apache more secure by hiding a folder?

conf file for this site in /etc/apache2/sites-available (and linked it to /etc/apache2/sites-enabled). Open that . conf file in your favorite editor and in the Directory section change AllowOverride None to AllowOverride All. Save and close the file.


1 Answers

here's a working simple solution:

<Directory /path/to/docroot/folder>
        Options -Indexes
</Directory>
<DirectoryMatch  /path/to/docroot/folder/(.)*/>
        Options +Indexes
</DirectoryMatch>
like image 94
regilero Avatar answered Nov 15 '22 20:11

regilero