
Chapter 6. Handling directories
</head>
<body /jointfilesconvert/296895/bgcolor="#ffffff" text="#000000"
link="#003399" alink="#cc0000" vlink="#cc3333">
<p>Here is an HTML half page to appear above
the file listing.</p>
Figure 6-31. HEADER.html with headers
IndexOptions FancyIndexing ... SuppressHTMLPreamble
HeaderName HEADER.html
Figure 6-32. httpd.conf: Providing our own HTML header
Figure 6-33. Links with different colours, courtesy of the <BODY> tag
In addition to placing text above the listing it is possible to place it underneath too.
A sensible name for this would be a “footer” to correspond with “header”. It’s called
a “readme”. Ho hum. The corresponding command is ReadmeName and this is re-
quired to be an HTML fragment which does not contain the </BODY> or </HTML>
tags.
Using an HTML table
We commented above that the data presented in the file listings is inherently tabular
and would be better presented as an HTML table. This is now available, as an “ex-
perimental feature” in versions of Apache beyond 2.0.23. (Red Hat Linux version 9
ships with 2.0.40). The author can find no mechanisms for setting the attributes of the
table from within Apache except to use stylesheets in the header file for the directory.
If you use HTML tables (and the author thinks it is a good idea) then you still need
to use the NameWidth=* and DescriptionWidth=* options to IndexOptions.
46
Komentáře k této Příručce