Bug 59124 - mod_autoindex not behaving as described in the documentation
Summary: mod_autoindex not behaving as described in the documentation
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_autoindex (show other bugs)
Version: 2.4.18
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-05 13:43 UTC by David Tonhofer
Modified: 2016-03-05 13:43 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Tonhofer 2016-03-05 13:43:44 UTC
Point 1:
========

At

https://httpd.apache.org/docs/current/mod/mod_autoindex.html#indexoptions

we read that the "Options" directive is allowed in

"server config, virtual host, directory, .htaccess"

In my case, I put it into a "Location" where it works w/o ill effect (and were I need to have it, so this is desired behaviour): The "location" is mapped to a specific directory and the contents of that directory are correctly displayed.

Is this expected, an error in the documentation or an edge case that actually should not work?

Point 2:
========

In the same case as above, the IndexOptions do not behave as expected according to how "incremental indexoptions" are supposed to accumulate:

<Location "/documents/">
   Options Indexes
   IndexOptions FancyIndexing +SuppressSize
</Location>

would be expected to drop all existing options switch on, FancyIndexing, then accumulate SuppressSize to this, resulting in:

"FancyIndexing" and "SuppressSize" becing active

but it does not, it switches on FancyIndexing but not SuppressSize.

TO switch on both, one has to use the + Notation throughout:

<Location "/documents/">
   Options Indexes
   IndexOptions +FancyIndexing +SuppressSize
</Location>

Again, not sure if there is a problem in the documentation or this is some edgy case.