Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14611 reviews 1734 hosting providers

Questions & Answers

Turn on directory listing in Linux

May 20, 2012 by chris
hi all..
does anyone here know ho to turn on directory listing in Linux? I want to turn on the directory listing in my linux server but I don't known how to. can anyone please help.

thank you

1 Answer

0 votes
May 20, 2012 by expert
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">
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