Ho to disable Directory Listing in Apache?
by n00b_noob from LinuxQuestions.org on (#5D45S)
Hello,
I'm using CentOS x86_64 as a web server for hosting a WordPress website. The Virtual Host configuration for the WordPress directory is as below:
Code:<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!
Which line of configuration is wrong?
Thank you.


I'm using CentOS x86_64 as a web server for hosting a WordPress website. The Virtual Host configuration for the WordPress directory is as below:
Code:<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!
Which line of configuration is wrong?
Thank you.