autoindex.conf 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <IfModule mod_autoindex.c>
  2. # Directives controlling the display of server-generated directory listings.
  3. #
  4. # IndexOptions: Controls the appearance of server-generated directory
  5. # listings.
  6. # Remove/replace the "Charset=UTF-8" if you don't use UTF-8 for your filenames.
  7. IndexOptions FancyIndexing VersionSort HTMLTable NameWidth=* DescriptionWidth=* Charset=UTF-8
  8. #
  9. # AddIcon* directives tell the server which icon to show for different
  10. # files or filename extensions. These are only displayed for
  11. # FancyIndexed directories.
  12. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip x-bzip2
  13. AddIconByType (TXT,/icons/text.gif) text/*
  14. AddIconByType (IMG,/icons/image2.gif) image/*
  15. AddIconByType (SND,/icons/sound2.gif) audio/*
  16. AddIconByType (VID,/icons/movie.gif) video/*
  17. AddIcon /icons/binary.gif .bin .exe
  18. AddIcon /icons/binhex.gif .hqx
  19. AddIcon /icons/tar.gif .tar
  20. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  21. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  22. AddIcon /icons/a.gif .ps .ai .eps
  23. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  24. AddIcon /icons/text.gif .txt
  25. AddIcon /icons/c.gif .c
  26. AddIcon /icons/p.gif .pl .py
  27. AddIcon /icons/f.gif .for
  28. AddIcon /icons/dvi.gif .dvi
  29. AddIcon /icons/uuencoded.gif .uu
  30. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  31. AddIcon /icons/tex.gif .tex
  32. # It's a suffix rule, so simply matching "core" matches "score" as well !
  33. AddIcon /icons/bomb.gif /core
  34. AddIcon (SND,/icons/sound2.gif) .ogg
  35. AddIcon (VID,/icons/movie.gif) .ogm
  36. AddIcon /icons/back.gif ..
  37. AddIcon /icons/hand.right.gif README
  38. AddIcon /icons/folder.gif ^^DIRECTORY^^
  39. AddIcon /icons/blank.gif ^^BLANKICON^^
  40. # Default icons for OpenDocument format
  41. AddIcon /icons/odf6odt-20x22.png .odt
  42. AddIcon /icons/odf6ods-20x22.png .ods
  43. AddIcon /icons/odf6odp-20x22.png .odp
  44. AddIcon /icons/odf6odg-20x22.png .odg
  45. AddIcon /icons/odf6odc-20x22.png .odc
  46. AddIcon /icons/odf6odf-20x22.png .odf
  47. AddIcon /icons/odf6odb-20x22.png .odb
  48. AddIcon /icons/odf6odi-20x22.png .odi
  49. AddIcon /icons/odf6odm-20x22.png .odm
  50. AddIcon /icons/odf6ott-20x22.png .ott
  51. AddIcon /icons/odf6ots-20x22.png .ots
  52. AddIcon /icons/odf6otp-20x22.png .otp
  53. AddIcon /icons/odf6otg-20x22.png .otg
  54. AddIcon /icons/odf6otc-20x22.png .otc
  55. AddIcon /icons/odf6otf-20x22.png .otf
  56. AddIcon /icons/odf6oti-20x22.png .oti
  57. AddIcon /icons/odf6oth-20x22.png .oth
  58. #
  59. # DefaultIcon is which icon to show for files which do not have an icon
  60. # explicitly set.
  61. DefaultIcon /icons/unknown.gif
  62. #
  63. # AddDescription allows you to place a short description after a file in
  64. # server-generated indexes. These are only displayed for FancyIndexed
  65. # directories.
  66. # Format: AddDescription "description" filename
  67. #AddDescription "GZIP compressed document" .gz
  68. #AddDescription "tar archive" .tar
  69. #AddDescription "GZIP compressed tar archive" .tgz
  70. #
  71. # ReadmeName is the name of the README file the server will look for by
  72. # default, and append to directory listings.
  73. #
  74. # HeaderName is the name of a file which should be prepended to
  75. # directory indexes
  76. ReadmeName README.html
  77. HeaderName HEADER.html
  78. #
  79. # IndexIgnore is a set of filenames which directory indexing should ignore
  80. # and not include in the listing. Shell-style wildcarding is permitted.
  81. IndexIgnore .??* *~ *# RCS CVS *,v *,t
  82. </IfModule>
  83. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet