Turn on directory listing in Linux

  1. Login to the server via SSH
  2. Open the following file in a text editor: vi /etc/httpd/conf/vhosts.conf
  3. Locate the virtual host container for the site in question and add the following:

    <Directory "/path/to/document/root/subfolder">
    </Directory>

  4. Save the file and test the Apache configuration with the following command: /etc/init.d/httpd configtest
  5. If you get a "Syntax Ok" response, then run this command to restart Apache: /etc/init.d/httpd restart