ListOptions [ "options string"] [ ["strict"]]
server config, <VirtualHost>, <Anonymous>, <Global>, <Directory>, .ftpaccess
1.2.8rc1 and later
Normally, FTP commands involving directory listings (NLST, LIST and STAT) use the arguments (options) passed by the client to determine what files are displayed and the format they are displayed in. The ListOptions directive can alter the behaviour of such listings by making it such that a certain option (or options) is always in effect, or is always disabled.
In addition to the normal dash-prefixed options that the builtin ls takes, the directive allows for plus-prefixed options. The plus-prefixed options allow for their dash-prefixed equivalents, potentially given by a user, to be disabled, while still allowing other options to function normally.
In the optional "strict" keyword is used, then the configured options will override any options given by the user (i.e. the user's options will be ignored).
# Force directory listings to always show dotfiles ListOptions "-a"
# To prevent anyone from doing recursive listings, but still allowing # other user options, use +R to disable any -R option given by users ListOptions "+R"
# To allow only the basic listing, no options, always ListOptions "" strict