Apache FancyIndexing
From Superk
With FancyIndexing in Apache, it's possible to create some really nice looking file indexes without much of any HTML coding whatsoever let alone the need for a fancy directory listing application.
.htaccess Setup
Options Indexes IndexOptions NameWidth=* FancyIndexing FoldersFirst SuppressLastModified SuppressDescription AddType text/html .html HeaderName /images/header.html ReadmeName /images/readme.html IndexIgnore /images AuthType Basic AuthName "Password Required" AuthUserFile /export/home/jdoe/passwords Require valid-user
Note the inclusion of the lines HeaderName and ReadmeName. HeaderName refers to the HTML that will come before the directory listing while ReadmeName is the HTML that comes after the directory listing.
Customizing HeaderName
<html>
<body>
<style>
body { background-color: #eee; font-family: Geneve, Arial, Helvetica, sans-serif; font-size: 12px; }
a:link { color: #009; text-decoration: none; }
a:visited { color: #A78989; text-decoration: none; }
a:hover { color: #006; }
h6 { font-size: 16px; font-variant: small-caps; letter-spacing: 2px; margin: 0px; padding: 1px; }
</style>
<center>
<img src="/images/minimal_logo.gif" height=40 width=200><br>
<h6>Online Books</h6>
</center>
Customizing ReadmeName
<center>
<h6><a href="http://www.superk.org">superk.org</a>
- Private Book Collection -
<a href="mailto:jdoe@superk.org">Comments/Questions</a></h6>
</center>
</body>
</html>
