From: Ken Coar
+>Module: mod_autoindex
+
The HeaderName directive sets the name of the file that will be inserted
at the top of the index listing. Filename is the name of the file
-to include, and is taken to be relative to the directory being indexed.
-The server first attempts to include filename See also ReadmeName.
+See also ReadmeName.
+
+>Module: mod_autoindex
+
The ReadmeName directive sets the name of the file that will be appended
to the end of the index listing. Filename is the name of the file
-to include, and is taken to be relative to the directory being indexed.
-The server first attempts to include filename
+ Compatibility: some features only available after
+ 1.3.6; see text
+.html
-as an HTML document, otherwise it will include filename as plain
-text. Example:
+to include.
+Apache 1.3.6 and earlier:
+The module first attempts to include filename
+.html
+as an HTML document, otherwise it will try to include filename as
+plain text. Filename is treated as a filesystem path relative
+to the directory being indexed. In no case is SSI processing done.
+Example:
when indexing the directory HeaderName HEADER/web, the server will first look for
the HTML file /web/HEADER.html and include it if found, otherwise
it will include the plain text file /web/HEADER, if it exists.
-
-
+Apache versions after 1.3.6:
+Filename is treated as a URI path relative to the one used
+to access the directory being indexed, and must resolve to a document
+with a major content type of "text" (e.g.,
+text/html, text/plain, etc.).
+This means that filename may refer to a CGI script if the
+script's actual file type (as opposed to its output) is marked as
+text/html such as with a directive like:
+
+
+ AddType text/html .cgi
+
+Content negotiation
+will be performed if the MultiViews
+option is enabled.
+If filename resolves to a static text/html document
+(not a CGI script) and the
+Includes option is enabled,
+the file will be processed for server-side includes (see the
+mod_include documentation).
+
IndexIgnore
@@ -753,19 +786,26 @@ the client from requesting the directory listing in a different order.
Module: mod_autoindex
+ Compatibility: some features only available after
+ 1.3.6; see text
+.html
-as an HTML document, otherwise it will include filename as plain
-text. Example:
-
-when indexing the directory ReadmeName README/web, the server will first look for
-the HTML file /web/README.html and include it if found, otherwise
-it will include the plain text file /web/README, if it exists.
-
+to include, and is taken to be relative to the location being indexed.
+
+The filename argument is treated as a stub filename +in Apache 1.3.6 and earlier, and as a relative URI in later versions. +Details of how it is handled may be found under the description of +the HeaderName directive, which uses the +same mechanism and changed at the same time as ReadmeName. +
See also HeaderName.