Search code examples
apachedirectorydirectory-structure

Apache - Deny listing directory but allow access to all subfolders


How can I deny listing the contents of a parent folder, but allow access to all subfolders?

I.E.

  • root (do not list)
    • folder (allow list)
      • a.exe
    • folder (allow list)
      • a.exe
    • folder (allow list)
      • a.exe

Solution

  • Options -Indexes in htaccess on parent, nothing in childs