Pimp your directory index

I used this to give some additional information about our local Debian mirror.

create your .htaccess with the following contents:

ReadmeName README
HeaderName HEADER

<Files ~ "(README|HEADER)$">
ForceType text/html
</Files>

Options +Indexes
IndexIgnore images *.ico

put something like this into your HEADER:

<HTML>
  <HEAD>
         <TITLE>Our local Debian mirror</TITLE>
  </HEAD>
  <BODY>
        <H1>Debian Mirror</H1><HR>
        <P>Welcome to our local Debian mirror! </P>
        <P>To use this mirror add the following to your
<TT>/etc/apt/sources.list</TT> <br>
<TT><B>deb http://debmirror.foo.lan/debian/ sarge main non-free
contrib</B></TT>
</P>
  </BODY>
</HTML>

if you want to put some text into the page footer create a file README and enter some HTML code:

<address>something to know</address>
apache/directory_index.txt · Last modified: 2009/04/24 21:10 by tb
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0