httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Long <>
Subject [users@httpd] Disable directory indexing for a specific directory.
Date Mon, 16 Nov 2020 16:41:38 GMT
I have a WordPress website and my Virtual Host file include below lines:

<Directory "/var/www/WP">
Options Indexes FollowSymLinks
AllowOverride all
Require all granted

Some of my WordPress directories are browsable and when I open the URLs, then the content
of the directories displayed:

How can I disable the directory indexing for those directories? I added below lines to my
Virtual Host config file, but not worked:

<Directory /var/www/WP/wp-content/plugins/email-subscribers>
      Options -Indexes
<Directory /var/www/WP/wp-content/plugins/contact-form-7>
      Options -Indexes

Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message