To get proper directory indexing setup in a directory in your Apache web server configuration, firstly, create a .htaccess file and paste the code below into it.
Options +Indexes HeaderName HEADER.html ReadmeName FOOTER.html IndexIgnore .htaccess .??* *~ *# HEADER* FOOTER* README* RCS CVS *,v *,t *.inc
Then create a HEADER.HTML with this in it.
<html> <head> <title>Misc Files.</title> </head> <body> <h1>Misc files for download</h1>
And a FOOTER.html with this in it.
This is how the directory can use fancy file listings.
This is what I got when I implemented this on my website.