stop or disable directory listing in Apache 2
Go to apache installation folder and edit the access.conf file under conf/ folder
There change the Options for the Directory Context As:
Options -Indexes FollowSymLinks
If Indexes is already there then edit it as -Indexes else add -Indexes to the previous arguments.
is what that will stop the directory or file listing in Apache 2.