]> TLD Linux GIT Repositories - packages/apache.git/blob - apache-mod_autoindex.conf
- updated to 2.4.23
[packages/apache.git] / apache-mod_autoindex.conf
1 LoadModule autoindex_module     modules/mod_autoindex.so
2
3 #
4 # Directives controlling the display of server-generated directory listings.
5 #
6
7 # Required modules: mod_autoindex, mod_alias
8 #
9 # To see the listing of a directory, the Options directive for the
10 # directory must include "Indexes", and the directory must not contain
11 # a file matching those listed in the DirectoryIndex directive.
12
13 <IfModule mod_autoindex.c>
14 # IndexOptions: Controls the appearance of server-generated directory
15 # listings.
16 #
17 IndexOptions FancyIndexing HTMLTable VersionSort Charset=UTF-8
18
19 # We include the /icons/ alias for FancyIndexed directory listings.  If
20 # you do not use FancyIndexing, you may comment this out.
21 #
22 Alias /icons/ "/home/services/httpd/icons/"
23
24 <Directory "/home/services/httpd/icons">
25         Options Indexes MultiViews
26         AllowOverride None
27         <IfModule mod_authz_host.c>
28                 Require all granted
29         </IfModule>
30 </Directory>
31
32 #
33 # AddIcon* directives tell the server which icon to show for different
34 # files or filename extensions.  These are only displayed for
35 # FancyIndexed directories.
36 #
37 AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
38
39 AddIconByType (TXT,/icons/text.gif) text/*
40 AddIconByType (IMG,/icons/image2.gif) image/*
41 AddIconByType (SND,/icons/sound2.gif) audio/*
42 AddIconByType (VID,/icons/movie.gif) video/*
43
44 AddIcon /icons/binary.gif .bin .exe
45 AddIcon /icons/binhex.gif .hqx
46 AddIcon /icons/tar.gif .tar
47 AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
48 AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
49 AddIcon /icons/a.gif .ps .ai .eps
50 AddIcon /icons/layout.gif .html .shtml .htm .pdf
51 AddIcon /icons/text.gif .txt
52 AddIcon /icons/c.gif .c
53 AddIcon /icons/p.gif .pl .py
54 AddIcon /icons/f.gif .for
55 AddIcon /icons/dvi.gif .dvi
56 AddIcon /icons/uuencoded.gif .uu
57 AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
58 AddIcon /icons/tex.gif .tex
59 AddIcon /icons/bomb.gif core
60
61 AddIcon /icons/back.gif ..
62 AddIcon /icons/hand.right.gif README
63 AddIcon /icons/folder.gif ^^DIRECTORY^^
64 AddIcon /icons/blank.gif ^^BLANKICON^^
65
66 #
67 # DefaultIcon is which icon to show for files which do not have an icon
68 # explicitly set.
69 #
70 DefaultIcon /icons/unknown.gif
71
72 #
73 # AddDescription allows you to place a short description after a file in
74 # server-generated indexes.  These are only displayed for FancyIndexed
75 # directories.
76 # Format: AddDescription "description" filename
77 #
78 #AddDescription "GZIP compressed document" .gz
79 #AddDescription "tar archive" .tar
80 #AddDescription "GZIP compressed tar archive" .tgz
81
82 #
83 # ReadmeName is the name of the README file the server will look for by
84 # default, and append to directory listings.
85 #
86 # HeaderName is the name of a file which should be prepended to
87 # directory indexes.
88 ReadmeName README.html
89 HeaderName HEADER.html
90
91 #
92 # IndexIgnore is a set of filenames which directory indexing should ignore
93 # and not include in the listing.  Shell-style wildcarding is permitted.
94 #
95 IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
96
97 </IfModule>