Re: Is it possible to exclude a directory from listing?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Is it possible to disable Directory Listing for a directory and its sub-directory except one of
> them?

Sure. You can do something like this. Pls set your correct paths.

# Disable directory listing for myparentdir and all of its subdirs
<Directory /var/www/html/myparentdir>
   Options -Indexes
   Require all granted
</Directory>

# Just enable directory listing for this subdir
<Directory /var/www/html/myparentdir/Dir2>
   Options +Indexes
</Directory>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux