dirlisting.txt 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. ==================
  2. Directory Listings
  3. ==================
  4. ----------------------
  5. Module: mod_dirlisting
  6. ----------------------
  7. :Author: Jan Kneschke
  8. :Date: $Date: 2004/11/03 22:26:05 $
  9. :Revision: $Revision: 1.2 $
  10. :abstract:
  11. mod_dirlisting generates HTML based directory listings with full CSS
  12. control
  13. .. meta::
  14. :keywords: lighttpd, directory listings, dirlisting
  15. .. contents:: Table of Contents
  16. Description
  17. ===========
  18. mod_dirlisting is one of the modules which is loaded by default and don't have to
  19. be specified on server.modules to work.
  20. A directory listing is generated if a directory is requested and no index-file
  21. was found in that directory.
  22. To enable directory listings globally: ::
  23. dir-listing.activate = "enable"
  24. If you need it only for a directory, use conditionals: ::
  25. $HTTP["url"] =~ "^/download($|/)" {
  26. dir-listing.activate = "enable"
  27. }
  28. You can also use a external generator for directory listings if you use
  29. mod_indexfile. ::
  30. index-file.names = ( "/dir-generator.php" )
  31. If a directory is requested the dir-generator.php is called instead which can
  32. take the REQUEST_URI to see which directory was requested.
  33. For large folders this is highly recommend.
  34. Options
  35. =======
  36. dir-listing.activate
  37. enables virtual directory listings if a directory is requested no
  38. index-file was found
  39. Default: disabled
  40. dir-listing.hide-dotfiles
  41. if enabled, does not list hidden files in directory listings generated
  42. by the dir-listing option.
  43. Default: enabled
  44. dir-listing.external-css
  45. path to an external css stylesheet for the directory listing
  46. dir-listing.exclude
  47. list of regular expressions. Files that match any of the specified regular
  48. expressions will be excluded from directory listings.
  49. dir-listing.encoding
  50. set a encoding for the generated directory listing
  51. If you file-system is not using ASCII you have to set the encoding of
  52. the filenames as they are put into the HTML listing AS IS (with XML
  53. encoding)
  54. Example: ::
  55. dir-listing.encoding = "utf-8"
  56. dir-listing.show-readme
  57. shows README.txt after the dirlisting if it exists in the directory
  58. Default: disabled
  59. dir-listing.hide-readme-file
  60. hides README.txt in the dirlisting
  61. Default: disabled
  62. dir-listing.show-header
  63. shows HEADER.txt before the dirlisting if it exists in the directory
  64. Default: disabled
  65. dir-listing.hide-header-file
  66. hides HEADER.txt in the dirlisting
  67. Default: disabled
  68. dir-listing.set-footer
  69. Default: empty, uses server.tag instead
  70. dir-listing.encode-readme
  71. encodes all control characters, '&', '<', '>' and '\x7f' as &#x**;
  72. Default: enabled
  73. dir-listing.encode-header
  74. encodes all control characters, '&', '<', '>' and '\x7f' as &#x**;
  75. Default: enabled
  76. dir-listing.auto-layout
  77. Disable this if you want your own html header and footer; specify
  78. them in HEADER.txt and README.txt
  79. you have to enable dir-list.show-readme/header for this of course
  80. .external-css and .set-footer will be ignored if this is disabled
  81. Default: enabled