10
:Date: $Date: 2004/11/03 22:26:05 $
11
:Revision: $Revision: 1.2 $
14
mod_dirlisting generates HTML based directory listings with full CSS
18
:keywords: lighttpd, directory listings, dirlisting
20
.. contents:: Table of Contents
25
mod_dirlisting is one of the modules which is loaded by default and don't have to
26
be specified on server.modules to work.
28
A directory listing is generated if a directory is requested and no index-file
29
was found in that directory.
31
To enable directory listings globally: ::
33
dir-listing.activate = "enable"
35
If you need it only for a directory, use conditionals: ::
37
$HTTP["url"] =~ "^/download($|/)" {
38
dir-listing.activate = "enable"
41
You can also use a external generator for directory listings if you use
44
index-file.names = ( "/dir-generator.php" )
46
If a directory is requested the dir-generator.php is called instead which can
47
take the REQUEST_URI to see which directory was requested.
49
For large folders this is highly recommend.
55
enables virtual directory listings if a directory is requested no
60
dir-listing.hide-dotfiles
61
if enabled, does not list hidden files in directory listings generated
62
by the dir-listing option.
66
dir-listing.external-css
67
path to an external css stylesheet for the directory listing
70
list of regular expressions. Files that match any of the specified regular
71
expressions will be excluded from directory listings.
74
set a encoding for the generated directory listing
76
If you file-system is not using ASCII you have to set the encoding of
77
the filenames as they are put into the HTML listing AS IS (with XML
82
dir-listing.encoding = "utf-8"
84
dir-listing.show-readme
85
shows README.txt after the dirlisting if it exists in the directory
89
dir-listing.hide-readme-file
90
hides README.txt in the dirlisting
94
dir-listing.show-header
95
shows HEADER.txt before the dirlisting if it exists in the directory
99
dir-listing.hide-header-file
100
hides HEADER.txt in the dirlisting
104
dir-listing.set-footer
106
Default: empty, uses server.tag instead
108
dir-listing.encode-readme
109
encodes all control characers, '&', '<', '>' and '\x7f' as &#x**;
113
dir-listing.encode-header
114
encodes all control characers, '&', '<', '>' and '\x7f' as &#x**;
118
dir-listing.auto-layout
119
Disable this if you want your own html header and footer; specify
120
them in HEADER.txt and README.txt
122
you have to enable dir-list.show-readme/header for this of course
124
.external-css and .set-footer will be ignored if this is disabled