Re: Is it possible to exclude a directory from listing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: users@xxxxxxxxxxxxxxxx
- Subject: Re: Is it possible to exclude a directory from listing?
- From: "Dino Ciuffetti" <dino@xxxxxxxxx>
- Date: Thu, 21 Jan 2021 16:25:43 +0000
- In-reply-to: <1305117144.2606990.1611229766084@mail.yahoo.com>
- Reply-to: users@xxxxxxxxxxxxxxxx
> 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]