mod_ls
The mod_ls
module handles the LIST
,
NLST
, and STAT
FTP commands.
<VirtualHost>
, <Global>
, <Anonymous>
, <Directory>
, .ftpaccess
The DirFakeGroup
directive
Examples:
<VirtualHost>
, <Global>
, <Anonymous>
, <Directory>
, .ftpaccess
The DirFakeMode
directive
Examples:
# Display everything as read-only DirFakeMode 0444
<VirtualHost>
, <Global>
, <Anonymous>
, <Directory>
, .ftpaccess
The DirFakeUser
directive
Examples:
<VirtualHost>
, <Global>
, <Anonymous>
, <Directory>
, .ftpaccess
The ListOptions
directive is used to configure various optional
behavior of mod_ls
. Note: all of the configured
ListOptions
parameters must appear on the same line in the
configuration; only the first ListOptions
directive that
appears in the configuration is used.
The currently supported flags are:
LISTOnly
This flag tells mod_ls
to apply the
ListOptions
configuration only to FTP LIST
commands, and not to e.g. NLST
/STAT
commands.
NLSTOnly
This flag tells mod_ls
to apply the
ListOptions
configuration only to FTP NLST
commands, and not to e.g. LIST
/STAT
commands.
NoErrorIfAbsent
This flag tells mod_ls
to return the FTP 226
response code for LIST
/NLST
commands for
files/paths which do not exist, rather than returning the 450 error
code.
NoAdjustedSymlinks
By default, mod_ls
tries to automatically adjust any
symlink destination paths when the FTP session is chrooted, so that
the adjusted symlinks work properly e.g. for FTP clients.
Note that this flag first appeared in
proftpd-1.3.6rc2
.
See also: ListOptions
<VirtualHost>
, <Global>
, <Anonymous>
The ShowSymlinks
directive
Examples:
<VirtualHost>
, <Global>
, <Anonymous>
The UseGlobbing
directive
Examples:
# Turn off support for globs in LIST/NLST commands UseGlobbing off
mod_ls
module is always installed.