From: Ken Coar Date: Mon, 28 Sep 1998 22:32:10 +0000 (+0000) Subject: There appear to be no dissenters (other than for brand-new and X-Git-Tag: 1.3.3~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8cf72c8c46c8cc6f0f8a0184903f680145ba5cfd;p=apache There appear to be no dissenters (other than for brand-new and incompatible syntaxes) after three days, and I want to get this in for 1.3.3. It can always be modified or reverted later. Add +/- prefixes to IndexOptions keywords, allow merging of multiple occurrences, and document the changes. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@82175 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_autoindex.html b/docs/manual/mod/mod_autoindex.html index 3038384df4..d48792ddd5 100644 --- a/docs/manual/mod/mod_autoindex.html +++ b/docs/manual/mod/mod_autoindex.html @@ -470,7 +470,16 @@ IndexIgnore README .htaccess *~ Syntax: IndexOptions option option ...
+>Syntax: IndexOptions option option ... + (Apache 1.3.2 and earlier) +
+Syntax: IndexOptions [+|-]option [+|-]option + ... + (Apache 1.3.3 and later) +
Module: mod_autoindex

+>Module: mod_autoindex +
+Compatibility: '+/-' syntax and merging of multiple + IndexOptions directives is only available with + Apache 1.3.3 and later +

The IndexOptions directive specifies the behavior of the directory indexing. Option can be one of @@ -577,7 +594,15 @@ indexing listings. This will suppress the file size in fancy indexing listings. -This default is that no options are enabled. If multiple IndexOptions +

+There are some noticeable differences in the behaviour of this +directive in recent (post-1.3.0) versions of Apache. +

+
+
Apache 1.3.2 and earlier:
+
+

+The default is that no options are enabled. If multiple IndexOptions could apply to a directory, then the most specific one is taken complete; the options are not merged. For example:

@@ -589,7 +614,56 @@ IndexOptions ScanHTMLTitles
</Directory>
then only ScanHTMLTitles will be set for the /web/docs/spec -directory.


+directory. +

+
+
Apache 1.3.3 and later:
+
+

+Apache 1.3.3 introduced some significant changes in the handling of +IndexOptions directives. In particular, +

+
    +
  • Multiple IndexOptions directives for a single + directory are now merged together. The result of the example above + will now be the equivalent of + IndexOptions FancyIndexing ScanHTMLTitles. +
  • +
  • The addition of the incremental syntax (i.e., prefixing + keywords with '+' or '-'). +
  • +
+

+Whenever a '+' or '-' prefixed keyword is encountered, it is applied +to the current IndexOptions settings (which may have been +inherited from an upper-level directory). However, whenever an unprefixed +keyword is processed, it clears all incremental settings. Consider +the following example: +

+
IndexOptions +ScanHTMLTitles -IconsAreLinks FancyIndexing +
+IndexOptions +SuppressSize +
+
+

+The net effect is equivalent to +IndexOptions FancyIndexing +SuppressSize, because +the unprefixed FancyIndexing discarded the incremental +keywords before it, but allowed them to start accumulating again +afterward. +

+

+To unconditionally set the IndexOptions for a +particular directory, clearing the inherited settings, use +

+
+IndexOptions None +
+IndexOptions new-setting ... +
+
+
+

ReadmeName