summaryrefslogtreecommitdiff
path: root/templates/autoindex.conf.erb
blob: 9f55b09ac7e01335158735725946f43438a33925 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<IfModule mod_autoindex.c>
#
# Directives controlling the display of server-generated directory listings.
#

Options Indexes FollowSymLinks

IndexOptions FancyIndexing 
IndexOptions VersionSort 
IndexOptions HTMLTable 
IndexOptions FoldersFirst 
#IndexOptions IconsAreLinks 
IndexOptions IgnoreCase 
IndexOptions SuppressDescription 
IndexOptions SuppressHTMLPreamble 
IndexOptions XHTML 
IndexOptions IconWidth=16 
IndexOptions IconHeight=16 
IndexOptions NameWidth=*
IndexOptions Charset=UTF-8 
IndexOrderDefault Descending Name
IndexHeadInsert "<link href=\"/icons/style.css\" media=\"screen,projection\" type=\"text/css\" rel=\"stylesheet\" />"
#HeaderName /icons/header.html
#ReadmeName /icons/footer.html

# AddIcon* directives tell the server which icon to show for different
# files or filename extensions.  These are only displayed for
# FancyIndexed directories.
#

# Custom FileType Icons by Arne Fahrenwalde

# Pictures
AddIcon /icons/image.png .jpg .jp2 .jif .jpeg .tiff .tif .pict .pct .bmp .gif .png .psd .tga .ai .indd .fh* .fh10 .xcf .svg

# Application
AddIcon /icons/app.png .app

# Movies
AddIcon /icons/movie.png .mov .mpg .mpeg .m2v .avi .divx .xvid .swf .wmv .wma .wm* .ram .rm .ogm .ogv

# Documents
AddIcon /icons/txt.png .txt .text .log .mdwn
AddIcon /icons/html.png .htm .html .xml .php .shtml .xhtml
AddIcon /icons/odt.png .odt .rtf .doc .ps .pdf
AddIcon /icons/ods.png .ods .xls
AddIcon /icons/odp.png .odp .ppt .pps

# Compressed Archives
AddIcon /icons/compressed.png .sit .sitx .zip .tar .gtar .gnutar .ustar .gz .tgz .tar-gz .hqx .bin .macbin .as .arc .arj .btoa .bz2 .tbz .tbz2 .cab .z .Z .sea .taz .tar-z .cpt .lza .lha .pf .rar .uu .uue .ync .y

# Sound Files
AddIcon /icons/sound.png .mp3 .m4a .mp4 .m4* .wav .aif .aiff .ogg .oga .spx .flac

# Disk Images & PKGs
AddIcon /icons/iso.png .dmg .iso .smi .img .toast
AddIcon /icons/deb.png .pkg .deb
AddIcon /icons/rpm.png .rpm

# Add-On

AddIcon /icons/h.png .h
AddIcon /icons/jar.png .jar
AddIcon /icons/log.png .log
AddIcon /icons/script.png .scpt .command .term .sh

# iWork
AddIcon /icons/pages.png .pages
AddIcon /icons/keynote.png .key

# standard-types
AddIcon /icons/bomb.png core

AddIcon /icons/back.png ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.png ^^DIRECTORY^^
AddIcon /icons/blank.png ^^BLANKICON^^

# other Types
AddIconByEncoding (CMP,/icons/compressed.png) x-compress x-gzip
AddIconByType (TXT,/icons/text.png) text/*
AddIconByType (IMG,/icons/image.png) image/*
AddIconByType (SND,/icons/sound.png) audio/*
AddIconByType (VID,/icons/movie.png) video/*

#
# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.
#
DefaultIcon /icons/unknown.png

#
# IndexIgnore is a set of filenames which directory indexing should ignore
# and not include in the listing.  Shell-style wildcarding is permitted.
#
IndexIgnore .??* *~ *# RCS CVS *,v *,t
</IfModule>