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