How to enable Directory listing in Apache
Directory listing is a web server function that displays the directory contents when there is no index file in a specific website directory.
This tutorial describes , How to enable directory listing with Apache web server.
1. Open your Apache Vhost file:
vim /etc/httpd/conf.d/example.com.conf
2. Add the following lines your Vhost file:
<Directory /var/www/html/some_directory >
Options +Indexes
</Directory>
3. Restart/ Reload your Apche web server:
systemctl restart httpd
Leave a Reply