Fancy Apache tricks:
In the <IfModule mod_autoindex.c> section of httpd.conf, add:
HeaderName
(instead of "HeaderName HEADER")
Then in htdocs, create an
<link rel="stylesheet" type="text/css" href="/.index.css">
And maybe add a
<meta name="robots" content="NOINDEX, NOFOLLOW">
line too.
Then still in htdocs, create an
BODY {
background-color: black;
color: white;
}
A:link { color: #6060FF }
A:visited { color: #A060FF }
A:active { color: #FF9090 }
ADDRESS {
font-family: sans-serif;
text-decoration: none;
text-align: right;
color: #303030;
}
What this all does:
* Pretty colors for all directory listings, via the stylesheet!
* Suppresses the annoying "<H1>Index of
The downside: You can't use HEADER.html files, as you could before.
Also, on an unrelated point, in httpd.conf, most people can get away with changing
IndexOptions FancyIndexing
to
IndexOptions SuppressDescription FancyIndexing
...since few people ever use that Description field.
Fancy Apache Tricks 0 Comments More | Login | Reply /