httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lucien Gentis <lucien.gen...@univ-lorraine.fr>
Subject Re: [users@httpd] Disable directory indexing for a specific directory.
Date Sun, 22 Nov 2020 15:06:59 GMT
Hello,

Could you please join your Virtual host complete configuration ?

Le 22/11/2020 à 14:50, Jason Long a écrit :
> Hello,
> Any idea?
>
> Thanks.
>
>
>
>
>
>
> On Monday, November 16, 2020, 08:11:58 PM GMT+3:30, Jason Long <hack3rcon@yahoo.com.invalid>
wrote:
>
>
>
>
>
> Hello,
> 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
> </Directory>
>
> Some of my WordPress directories are browsable and when I open the URLs, then the content
of the directories displayed:
>
> https://example.net/wp-content/plugins/email-subscribers/
> https://example.net/wp-content/plugins/contact-form-7/
>
> 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>
> <Directory /var/www/WP/wp-content/plugins/contact-form-7>
>        Options -Indexes
> </Directory>
>
> Thank you.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message