]> git.pld-linux.org Git - packages/apache.git/blobdiff - apache-mod_autoindex.conf
- rel 9
[packages/apache.git] / apache-mod_autoindex.conf
index 539fa2e515dd16151d0c43696548ad3cc96ec2d4..1fd761511c4c67a45cc1938fcee7f031c721e2fa 100644 (file)
@@ -1,87 +1,99 @@
-LoadModule dir_module           modules/mod_autoindex.so
+# $Id$
+LoadModule autoindex_module    modules/mod_autoindex.so
+
+#
+# Directives controlling the display of server-generated directory listings.
+#
+
+# Required modules: mod_autoindex, mod_alias
+#
+# To see the listing of a directory, the Options directive for the
+# directory must include "Indexes", and the directory must not contain
+# a file matching those listed in the DirectoryIndex directive.
 
 <IfModule mod_autoindex.c>
-       #
-       # FancyIndexing is whether you want fancy directory indexing or standard.
-       # VersionSort is whether files containing version numbers should be
-       # compared in the natural way, so that `apache-1.3.9.tar' is placed before
-       # `apache-1.3.12.tar'.
-       #
-       IndexOptions FancyIndexing VersionSort
+# IndexOptions: Controls the appearance of server-generated directory
+# listings.
+#
+IndexOptions FancyIndexing VersionSort
 
-       #
-       # AddIcon* directives tell the server which icon to show for different
-       # files or filename extensions.  These are only displayed for
-       # FancyIndexed directories.
-       #
-       AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
+# We include the /icons/ alias for FancyIndexed directory listings.  If
+# you do not use FancyIndexing, you may comment this out.
+#
+Alias /icons/ "/home/services/httpd/icons/"
 
-       AddIconByType (TXT,/icons/text.gif) text/*
-       AddIconByType (IMG,/icons/image2.gif) image/*
-       AddIconByType (SND,/icons/sound2.gif) audio/*
-       AddIconByType (VID,/icons/movie.gif) video/*
+<Directory "/home/services/httpd/icons">
+       Options Indexes MultiViews
+       AllowOverride None
+       <IfModule mod_authz_host.c>
+               Order allow,deny
+               Allow from all
+       </IfModule>
+</Directory>
 
-       AddIcon /icons/binary.gif .bin .exe
-       AddIcon /icons/binhex.gif .hqx
-       AddIcon /icons/tar.gif .tar
-       AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
-       AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
-       AddIcon /icons/a.gif .ps .ai .eps
-       AddIcon /icons/layout.gif .html .shtml .htm .pdf
-       AddIcon /icons/text.gif .txt
-       AddIcon /icons/c.gif .c
-       AddIcon /icons/p.gif .pl .py
-       AddIcon /icons/f.gif .for
-       AddIcon /icons/dvi.gif .dvi
-       AddIcon /icons/uuencoded.gif .uu
-       AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
-       AddIcon /icons/tex.gif .tex
-       AddIcon /icons/bomb.gif core
+#
+# AddIcon* directives tell the server which icon to show for different
+# files or filename extensions.  These are only displayed for
+# FancyIndexed directories.
+#
+AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
 
-       AddIcon /icons/back.gif ..
-       AddIcon /icons/hand.right.gif README
-       AddIcon /icons/folder.gif ^^DIRECTORY^^
-       AddIcon /icons/blank.gif ^^BLANKICON^^
+AddIconByType (TXT,/icons/text.gif) text/*
+AddIconByType (IMG,/icons/image2.gif) image/*
+AddIconByType (SND,/icons/sound2.gif) audio/*
+AddIconByType (VID,/icons/movie.gif) video/*
 
-       #
-       # DefaultIcon is which icon to show for files which do not have an icon
-       # explicitly set.
-       #
-       DefaultIcon /icons/unknown.gif
+AddIcon /icons/binary.gif .bin .exe
+AddIcon /icons/binhex.gif .hqx
+AddIcon /icons/tar.gif .tar
+AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
+AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
+AddIcon /icons/a.gif .ps .ai .eps
+AddIcon /icons/layout.gif .html .shtml .htm .pdf
+AddIcon /icons/text.gif .txt
+AddIcon /icons/c.gif .c
+AddIcon /icons/p.gif .pl .py
+AddIcon /icons/f.gif .for
+AddIcon /icons/dvi.gif .dvi
+AddIcon /icons/uuencoded.gif .uu
+AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
+AddIcon /icons/tex.gif .tex
+AddIcon /icons/bomb.gif core
 
-       #
-       # AddDescription allows you to place a short description after a file in
-       # server-generated indexes.  These are only displayed for FancyIndexed
-       # directories.
-       # Format: AddDescription "description" filename
-       #
-       #AddDescription "GZIP compressed document" .gz
-       #AddDescription "tar archive" .tar
-       #AddDescription "GZIP compressed tar archive" .tgz
+AddIcon /icons/back.gif ..
+AddIcon /icons/hand.right.gif README
+AddIcon /icons/folder.gif ^^DIRECTORY^^
+AddIcon /icons/blank.gif ^^BLANKICON^^
 
-       #
-       # ReadmeName is the name of the README file the server will look for by
-       # default, and append to directory listings.
-       #
-       # HeaderName is the name of a file which should be prepended to
-       # directory indexes.
-       ReadmeName README.html
-       HeaderName HEADER.html
+#
+# DefaultIcon is which icon to show for files which do not have an icon
+# explicitly set.
+#
+DefaultIcon /icons/unknown.gif
 
-       #
-       # IndexIgnore is a set of filenames which directory indexing should ignore
-       # and not include in the listing.  Shell-style wildcarding is permitted.
-       #
-       IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
+#
+# AddDescription allows you to place a short description after a file in
+# server-generated indexes.  These are only displayed for FancyIndexed
+# directories.
+# Format: AddDescription "description" filename
+#
+#AddDescription "GZIP compressed document" .gz
+#AddDescription "tar archive" .tar
+#AddDescription "GZIP compressed tar archive" .tgz
 
-       #
-       # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
-       # information on the fly. Note: Not all browsers support this.
-       # Despite the name similarity, the following Add* directives have nothing
-       # to do with the FancyIndexing customization directives above.
-       #
-       AddEncoding x-compress Z
-       AddEncoding x-gzip gz tgz
-       
-</IfModule>
+#
+# ReadmeName is the name of the README file the server will look for by
+# default, and append to directory listings.
+#
+# HeaderName is the name of a file which should be prepended to
+# directory indexes.
+ReadmeName README.html
+HeaderName HEADER.html
 
+#
+# IndexIgnore is a set of filenames which directory indexing should ignore
+# and not include in the listing.  Shell-style wildcarding is permitted.
+#
+IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
+
+</IfModule>
This page took 0.056486 seconds and 4 git commands to generate.