httpd
to generate a hypertext view of the directory listing. There are
numerous configuration directives controlling this feature:
DirAccess
- Enable/Selective/Disable directory listings
DirReadme
- Configure/disable README-feature
FTPDirInfo
- Configure/disable FTP messages in FTP listings
DirShowIcons
- Show icons in directory listings
DirShowDate
- show last-modified date
DirShowSize
- show file sizes
DirShowBytes
- show byte count for small files
DirShowDescription
- show descriptions for files
DirShowHTMLTitles
- show HTML titles in description field
DirShowMaxDescriptionLength
- maximum description length
DirShowBrackets
- use brackets around ALTernative text used instead of an icon
DirShowMinLength
- minimum width to reserve for filenames
DirShowMaxLength
- maximum width to reserve for filenames
DirShowHidden
- show also files starting with a dot (hidden Unix files)
DirShowOwner
- show owner of the file
DirShowGroup
- show group of the file
DirShowMode
- show permissions of the file
DirShowCase
- do sorting in a case-sensitive manner
DirAddHref
- make listing icons linked to CGI scripts
AddIcon
- bind icon URL to a MIME Content-Type or Content-Encoding
AddBlankIcon
- icon URL used in the heading of the listing to align it
AddUnknownIcon
- icon URL for unknown file types
AddDirIcon
- icon URL for directories
AddParentIcon
- icon URL for parent directory
DirAccess On
-dy
command line option.
Default.
DirAccess Off
-dn
command line option.
DirAccess Selective
.www_browsable
are allowed.
Synonym with -ds
command line option.
DirReadme Top
README
file, include the text at the top of the directory listing.
Synonym with -dt
command line option.
Default.
DirReadme Bottom
README
appear
on the bottom.
Synonym with -db
command line option.
DirReadme Off
README
inclusion feature.
Synonym with -dr
command line option.
FTPDirInfo Top
FTPDirInfo Bottom
FTPDirInfo Off
On/Off
directives control how the directory
listings look like. The default is to show icons, use brackets around
ALTernaltive text, show last-modified, size and description, allow
filename field width vary between 15-22 characters, reserve 25
characters for description, and use HTML titles as descriptions for
HTML files.
DirShowIcons
AddIcon
configuration
directive. Default.
DirShowDate
DirShowSize
DirShowBytes
On
will cause the exact byte count
to appear.
DirShowDescription
At the time of release of 2.17 there was no consensus about where the descriptions come from, and the mechanism is currently undocumented. For HTML files description it the TITLE element; for other files the description field is left empty.
DirShowHTMLTitles
DirShowMaxDescriptionLenght
DirShowBrackets
DirShowHidden
DirShowOwner
DirShowGroup
DirShowMode
DirShowCase
DirAddHref
directive can be used to make the icon in
HTTP directory listings sensitive for files which end in specified
suffixes. The action is a CGI script call that can produce e.g. a
listing of the contents of a tar file.
DirAddHref /cgi-bin/unarch .zip .tarThis would cause the icon for ZIP and TAR files to be linked to the
unarch
CGI script (note that this is really a
webmaster-supplied CGI script, not the normal unarch
program) with the virtual URL path in PATH_INFO
environment variable and the physical file path in
PATH_TRANSLATED
. Don't use this directive on a proxy!
DirShowMinLength
num
DirShowMaxLength
num
DirShowMinLength 15 DirShowMaxLength 25