Find this section in httpd.conf
Code:
#
# Disable autoindex for the root directory, and present a
# default Welcome page if no other index page is present.
#
<LocationMatch "^/$>
Options -Indexes
ErrorDocument 403 /error/noindex.html
</LocationMatch>
Comment out the lines like so
Code:
#
# Disable autoindex for the root directory, and present a
# default Welcome page if no other index page is present.
#
#<LocationMatch "^/$>
# Options -Indexes
# ErrorDocument 403 /error/noindex.html
#</LocationMatch>
Save the file.
Go into your html directory and get rid of your index file.
Run this command
>service httpd restart
Refresh your locahost directory in your browser.
You will now have a directory tree with your files and folders listed.
If you leave your index file in there after the changes it will still display.
If you leave those lines intact then the index file will display if present and if not, you will get the default greeting.
REMEMBER to restart httpd after changing httpd.conf
Sem