• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

How do I can display the directory's file list ?

N

Neantis

Guest
Hi,

How do I can configure apache for one of my customer to display the file list of a directory ?
I know i can add some configuration in vhost.conf but i don't know what i need to add.

Does anyone can help me ?

Thanks in advance for your help ;)

PS: Sorry for my english, i'm not a native english speaker.
 
Add this into a vhost.conf file for your domain

Code:
<Directory "/var/www/vhosts/domain/httpdocs/sub-folder-if-any">
Options Indexes
</Directory>


Then run
Code:
/usr/local/psa/admin/bin/websrvmng -v -a
service httpd restart

That will do it.
 
I feel the .htaccess solution is much more easier to do for any user.
It is a simple file with a single line.

Options +Indexes
 
Back
Top