Thank you. I did: <Directory "/var/www/wp"> Options -Indexes AllowOverride All Require all granted </Directory>
But when I browse "https://MyDomain.net/wp-content/plugins" then I can see the content of the plugins directory! Why? On Thursday, January 21, 2021, 07:56:38 PM GMT+3:30, Dino Ciuffetti <d...@tuxweb.it> wrote: > 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-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org