From: Rich Bowen Date: Mon, 28 Oct 2002 01:27:24 +0000 (+0000) Subject: It seems that a lot of people get confused about where they can put X-Git-Tag: 2.0.44~211 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1719e0f753bf83271d22a6fb4a420accee56e537;p=thirdparty%2Fapache%2Fhttpd.git It seems that a lot of people get confused about where they can put header and footer files, and assume that they *must* be in the same directory as that being indexed. Just being a little more explicit on this point, as it seems to come up very frequently. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97317 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_autoindex.html.en b/docs/manual/mod/mod_autoindex.html.en index 2a059f537e5..f076a5125ac 100644 --- a/docs/manual/mod/mod_autoindex.html.en +++ b/docs/manual/mod/mod_autoindex.html.en @@ -353,14 +353,21 @@ of the index listingSynta of the file that will be inserted at the top of the index listing. Filename is the name of the file to include.

-

Example

-HeaderName HEADER.html -

+

Example

+ HeaderName HEADER.html +

Both HeaderName and ReadmeName now treat Filename as a URI path relative to the one used to - access the directory being indexed. Filename must + access the directory being indexed. If Filename begins + with a slash, it will be taken to be relative to the DocumentRoot.

+ +

Example

+ HeaderName /include/HEADER.html +

+ +

Filename must resolve to a document with a major content type of "text/*" (e.g., text/html, text/plain, etc.). This means that @@ -731,12 +738,19 @@ of the index listingSynta

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 location being indexed.

+ is taken to be relative to the location being indexed. If + Filename begins with a slash, it will be taken to be + relative to the DocumentRoot. +

Example

ReadmeName FOOTER.html

+

Example 2

+ ReadmeName /include/FOOTER.html +

+

See also HeaderName, where this behavior is described in greater detail.

\ No newline at end of file diff --git a/docs/manual/mod/mod_autoindex.xml b/docs/manual/mod/mod_autoindex.xml index 8f4a1944399..b24f7697658 100644 --- a/docs/manual/mod/mod_autoindex.xml +++ b/docs/manual/mod/mod_autoindex.xml @@ -409,15 +409,23 @@ of the index listing of the file that will be inserted at the top of the index listing. Filename is the name of the file to include.

-Example -HeaderName HEADER.html - + Example + HeaderName HEADER.html +

Both HeaderName and ReadmeName now treat Filename as a URI path relative to the one used to - access the directory being indexed. Filename must + access the directory being indexed. If Filename begins + with a slash, it will be taken to be relative to the DocumentRoot.

+ + Example + HeaderName /include/HEADER.html + + +

Filename must resolve to a document with a major content type of "text/*" (e.g., text/html, text/plain, etc.). This means that @@ -839,12 +847,19 @@ of the index listing

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 location being indexed.

+ is taken to be relative to the location being indexed. If + Filename begins with a slash, it will be taken to be + relative to the DocumentRoot. +

Example ReadmeName FOOTER.html + Example 2 + ReadmeName /include/FOOTER.html + +

See also HeaderName, where this behavior is described in greater detail.