You can enable apache file and directory indexing by making changes in Apache config file:
You can use directory options in Apache configuration file, httpd.conf file is an Apache configuration file. You can add below code in that file or you can also add that code in /etc/apache2/apache2.conf:
You can use directory options in Apache configuration file, httpd.conf file is an Apache configuration file. You can add below code in that file or you can also add that code in /etc/apache2/apache2.conf:
- First open apache configuration file with vi editor:
Code:
# vi /etc/apache2/apache2.conf
- Now add below code in that configuration file.
Code:
<Directory /var/www/example.com/folder>
Options Indexes FollowSymLinks
</Directory>
- After adding code, save your configuration file and restart Apache services.
Code:
# /etc/init.d/httpd restart