Name
IndexOrderDefault
Synopsis
IndexOrderDefault Ascending|Descending Name|Date|Size|Description Server config, virtual host, directory, .htaccess IndexOrderDefault is only available in Apache 1.3.4 and later.
The IndexOrderDefault
directive is used in
combination with the FancyIndexing
index option.
By default, FancyIndex
ed directory listings are
displayed in ascending order by filename;
IndexOrderDefault
allows you to change this
initial display order.
IndexOrderDefault
takes two arguments. The first
must be either Ascending
or
Descending
, indicating the direction of the sort.
The second argument must be one of the keywords
Name
, Date
,
Size
, or Description
and
identifies the primary key. The secondary key is always the ascending
filename.
You can force a directory listing to be displayed only in a
particular order by combining this directive with the
SuppressColumnSorting
index option; this will
prevent the client from requesting the directory listing in a
different order.
Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.