X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=docs%2Fmanual%2Fmod%2Fmod_autoindex.html.en;h=0e7634944ead467c7203ae0afecd8bb183e4f275;hb=0ae5b1af6b6bf3048d2a124e84905f63d6507dea;hp=687f3f010b0e3de28137acac0133abd00bc1d7ec;hpb=a015503f65d8f80993fd129b871a0453d78b6331;p=apache diff --git a/docs/manual/mod/mod_autoindex.html.en b/docs/manual/mod/mod_autoindex.html.en index 687f3f010b..0e7634944e 100644 --- a/docs/manual/mod/mod_autoindex.html.en +++ b/docs/manual/mod/mod_autoindex.html.en @@ -1,23 +1,25 @@ -
-Apache HTTP Server Version 2.5
-IndexOptions
directive's
- SuppressColumnSorting
+ SuppressColumnSorting
option.
Note that when the display is sorted by "Size", it's the @@ -80,7 +82,10 @@ before a 1011-byte file (if in ascending order) even though they both are shown as "1K".
-
- AddAlt "PDF file" *.pdf
- AddAlt Compressed *.gz *.zip *.Z
-
AddAlt "PDF file" *.pdf +AddAlt Compressed *.gz *.zip *.Z+
- AddAltByEncoding gzip x-gzip
-
AddAltByEncoding gzip x-gzip+ @@ -276,9 +278,8 @@ icon selected by MIME content-type This alternate text is displayed if the client is image-incapable, has image loading disabled, or fails to retrieve the icon. -
- AddAltByType 'plain text' text/plain
-
AddAltByType 'plain text' text/plain+ @@ -297,10 +298,9 @@ icon selected by MIME content-type expression or full filename for files to describe. String is enclosed in double quotes (
"
).
-
- AddDescription "The planet Mars" mars.gif
- AddDescription "My friend Marshall" friends/mars.gif
-
AddDescription "The planet Mars" mars.gif +AddDescription "My friend Marshall" friends/mars.gif+
The typical, default description field is 23 bytes wide. 6
more bytes are added by the IndexOptions SuppressIcon
option, 7 bytes are
@@ -332,7 +332,7 @@ icon selected by MIME content-type
Absolute paths are not currently supported and do not match anything at runtime. Arguments with relative path information, - which would normally only be used in htaccess context, are implicitly + which would normally only be used in htaccess context, are implicitly prefixed with '*/' to avoid matching partial directory names.
IndexOptions
HTMLTable
.
-
- AddIcon (IMG,/icons/image.png) .gif .jpg .png
- AddIcon /icons/dir.png ^^DIRECTORY^^
- AddIcon /icons/backup.png *~
-
#Examples +AddIcon (IMG,/icons/image.png) .gif .jpg .png +AddIcon /icons/dir.png ^^DIRECTORY^^ +AddIcon /icons/backup.png *~+
AddIconByType
should be used in preference to AddIcon
,
@@ -397,9 +397,8 @@ content-encoding
MIME-encoding is a valid content-encoding, such as
x-compress
.
- AddIconByEncoding /icons/compress.png x-compress
-
AddIconByEncoding /icons/compress.png x-compress+ @@ -425,9 +424,8 @@ content-type
MIME-type is a wildcard expression matching required the mime types.
-
- AddIconByType (IMG,/icons/image.png) image/*
-
AddIconByType (IMG,/icons/image.png) image/*+ @@ -446,9 +444,8 @@ configured Url-path is a (%-escaped) relative URL to the icon, or a fully qualified remote URL. -
- DefaultIcon /icon/unknown.png
-
DefaultIcon /icon/unknown.png+ @@ -466,9 +463,8 @@ 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. -
- HeaderName HEADER.html
-
HeaderName HEADER.html+
Both HeaderName and ReadmeName
now treat
@@ -476,9 +472,8 @@ of the index listing
access the directory being indexed. If Filename begins
with a slash, it will be taken to be relative to the DocumentRoot
.
- HeaderName /include/HEADER.html
-
HeaderName /include/HEADER.html+
Filename must resolve to a document with a major
content type of text/*
(e.g.,
@@ -487,9 +482,8 @@ of the index listing
actual file type (as opposed to its output) is marked as
text/html
such as with a directive like:
- AddType text/html .cgi
-
AddType text/html .cgi+
Content negotiation
will be performed if Options
@@ -525,10 +519,8 @@ of the index listing
The IndexHeadInsert
directive specifies a
string to insert in the <head> section of the HTML
generated for the index page.
-
- IndexHeadInsert "<link rel=\"sitemap\" href=\"/sitemap.html\">"
-
IndexHeadInsert "<link rel=\"sitemap\" href=\"/sitemap.html\">"+
.
(the current
directory).
-
- IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
-
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t+
This directive does not currently work in configuration sections
@@ -578,15 +569,14 @@ a directory
any files ignored by IndexIgnore
otherwise
inherited from other configuration sections.
- <Directory /var/www>
- IndexIgnore *.bak .??* *~ *# HEADER* README* RCS CVS *,v *,t
- </Directory>
- <Directory /var/www/backups>
- IndexIgnoreReset ON
- IndexIgnore .??* *# HEADER* README* RCS CVS *,v *,t
- </Directory>
-
<Directory "/var/www"> + IndexIgnore *.bak .??* *~ *# HEADER* README* RCS CVS *,v *,t +</Directory> +<Directory "/var/www/backups"> + IndexIgnoreReset ON + IndexIgnore .??* *# HEADER* README* RCS CVS *,v *,t +</Directory>+
Review the default configuration for a list of patterns that you might want to explicitly ignore after using this @@ -634,9 +624,8 @@ indexing (It depends on whether the underlying file system uses Unicode filenames or not.) -
- IndexOptions Charset=UTF-8
-
IndexOptions Charset=UTF-8+
-DescriptionWidth
(or unset) allows
- mod_autoindex
to calculate the best width.-DescriptionWidth
(or unset) allows
+ mod_autoindex
to calculate the best width.DescriptionWidth=n
fixes the column width to
n bytes wide.DescriptionWidth=*
grows the column to the
width necessary to accommodate the longest description
- string.AddDescription
for dangers
+ See the section on AddDescription
for dangers
inherent in truncating descriptions.FoldersFirst
is enabled, subdirectory
Zed
will be listed before subdirectory
Beta
, which will be listed before normal files
- Gamma
and Alpha
. This option
- only has an effect if FancyIndexing
is also enabled.
+ Gamma
and Alpha
.
+ This option only has an effect if FancyIndexing
+ is also enabled.
+
FancyIndexing
is also enabled.
+
+
AddDescription
for information about setting the file
description. See also the DescriptionWidth
- index option to limit the size of the description column.
+ index option to limit the size of the description column.
+
+ This option
+ only has an effect if FancyIndexing
is also enabled.
+
FancyIndexing
is also enabled.
+
SuppressRules
yields proper HTML 3.2 output, which
by the final specification prohibits img
and
hr
elements from the pre
block (used to
- format FancyIndexed listings.)
+ format FancyIndexed listings.)
+
+ This option
+ only has an effect if FancyIndexing
is also enabled.
+
+
FancyIndexing
is also enabled.
+
- IndexOptions Type=text/plain
-
IndexOptions Type=text/plain+
XHTML
keyword forces mod_autoindex
- to emit XHTML 1.0 code instead of HTML 3.2.FancyIndexing
is also enabled.
+
+
IndexOptions
directives for a
single directory are now merged together. The result of:
-
- <Directory /foo>
-
- IndexOptions HTMLTable
- IndexOptions SuppressColumnsorting
-
- </Directory>
-
<Directory "/foo"> + IndexOptions HTMLTable + IndexOptions SuppressColumnsorting +</Directory>+
will be the equivalent of
-
- IndexOptions HTMLTable SuppressColumnsorting
-
IndexOptions HTMLTable SuppressColumnsorting+
- IndexOptions +ScanHTMLTitles -IconsAreLinks FancyIndexing
- IndexOptions +SuppressSize
-
IndexOptions +ScanHTMLTitles -IconsAreLinks FancyIndexing+
+IndexOptions +SuppressSize
The net effect is equivalent to IndexOptions FancyIndexing
+SuppressSize
, because the unprefixed FancyIndexing
@@ -981,10 +992,8 @@ Name|Date|Size|Description
The IndexStyleSheet
directive sets the name of
the file that will be used as the CSS for the index listing.
-
- IndexStyleSheet "/css/style.css"
-
IndexStyleSheet "/css/style.css"+
Using this directive in conjunction with IndexOptions
HTMLTable
adds a number of CSS classes to the resulting HTML.
@@ -1024,13 +1033,13 @@ of the index listing
relative to the DocumentRoot
.
- ReadmeName FOOTER.html
-
# Example 1 +ReadmeName FOOTER.html+ + +
# Example 2 +ReadmeName /include/FOOTER.html-
- ReadmeName /include/FOOTER.html
-
See also HeaderName
, where this behavior is described in greater
detail.