-
Notifications
You must be signed in to change notification settings - Fork 77
/
.htaccess
171 lines (156 loc) · 7.36 KB
/
.htaccess
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# ENABLE DIRECTORY VIEWS
Options +Indexes
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
# STRONG HTACCESS PROTECTION
<Files ~ "^.*\.([Hh][Tt][Aa])">
<IfVersion < 2.3>
order allow,deny
deny from all
</IfVersion>
<IfVersion >= 2.3>
Require all denied
</IfVersion>
</Files>
# DIRECTORY CUSTOMIZATION
<IfModule mod_autoindex.c>
# SET INDEX OPTIONS
IndexOptions IgnoreCase FancyIndexing HTMLTable SuppressHTMLPreamble FoldersFirst VersionSort NameWidth=* DescriptionWidth=* XHTML IconHeight=16 IconWidth=16
# Other options.
# IconsAreLinks SuppressColumnSorting
# SET DISPLAY ORDER
IndexOrderDefault Ascending Name
IndexStyleSheet /fancy-index/style.css
# SPECIFY HEADER FILE
HeaderName /fancy-index/header.html
# SPECIFY FOOTER FILE
ReadmeName /fancy-index/footer.html
# IGNORE THESE FILES
IndexIgnoreReset ON
IndexIgnore .ftpquota .DS_Store .git fancy-index
# DEFAULT ICON
DefaultIcon /fancy-index/icons/file-text.svg
AddIcon /fancy-index/icons/back.svg ..
AddIcon /fancy-index/icons/github.svg .github
AddIcon /fancy-index/icons/nodejs.svg node_modules
AddIcon /fancy-index/icons/file-directory.svg ^^DIRECTORY^^
# SPECIFIC FILE ICONS
# https://github.com/file-icons/source
AddIcon /fancy-index/icons/file-binary.svg .com .exe
AddIcon /fancy-index/icons/file-code.svg .c .h .mustache .rust .source .apache .yml .jade
AddIcon /fancy-index/icons/file-media.svg .png .jpg .jpeg .webp .gif .bmp .mp4 .webm .ogv .mov .ico
AddIcon /fancy-index/icons/file-pdf.svg .pdf
AddIcon /fancy-index/icons/file-text.svg .txt .srt README readme Procfile
AddIcon /fancy-index/icons/file-zip.svg .zip .z .gz .Z .tgz .tar.gz .tar .rar
AddIcon /fancy-index/icons/gear.svg .htaccess .env .env-dev .env-production .env-staging
AddIcon /fancy-index/icons/config.svg .conf .ini .cfg .prefs
AddIcon /fancy-index/icons/less.svg .less
AddIcon /fancy-index/icons/css.svg .css
AddIcon /fancy-index/icons/html.svg .html .htm
AddIcon /fancy-index/icons/coffee.svg .coffee
AddIcon /fancy-index/icons/java.svg .java
AddIcon /fancy-index/icons/markdown.svg .markdown .md
AddIcon /fancy-index/icons/eslint.svg *.eslintignore *.eslintrc.js *.eslintrc.json *.eslintrc *.eslintrc.yml
AddIcon /fancy-index/icons/webpack.svg webpack.config.js
AddIcon /fancy-index/icons/rollup.svg rollup.config.js
AddIcon /fancy-index/icons/postcss.svg postcss.config.js *.postcssrc *.postcssrc.json *.postcssrc.js *.postcssrc.yml
AddIcon /fancy-index/icons/grunt.svg gruntfile.js Gruntfile.js
AddIcon /fancy-index/icons/gulp.svg gulpfile.js Gulpfile.js
AddIcon /fancy-index/icons/js.svg .js
AddIcon /fancy-index/icons/composer.svg composer.json composer.lock composer.phar
AddIcon /fancy-index/icons/bower.svg bower.json
AddIcon /fancy-index/icons/npm.svg package.json package-lock.json
AddIcon /fancy-index/icons/settings.svg .json
AddIcon /fancy-index/icons/mustache.svg .mustache
AddIcon /fancy-index/icons/php.svg .php
AddIcon /fancy-index/icons/python.svg .py
AddIcon /fancy-index/icons/ruby.svg .rb
AddIcon /fancy-index/icons/rust.svg .rust
AddIcon /fancy-index/icons/sass.svg .sass
AddIcon /fancy-index/icons/scss.svg .scss
AddIcon /fancy-index/icons/svg.svg .svg .svgx .eps
AddIcon /fancy-index/icons/xml.svg .xml
AddIcon /fancy-index/icons/typescript.svg .ts
AddIcon /fancy-index/icons/vue.svg .vue
AddIcon /fancy-index/icons/yarn.svg yarn.lock
AddIcon /fancy-index/icons/babel.svg *.babelrc
AddIcon /fancy-index/icons/git.svg *.gitignore *.gitattributes
AddIcon /fancy-index/icons/editor-config.svg .editorconfig
AddIcon /fancy-index/icons/shopify.svg .liquid
AddIcon /fancy-index/icons/nunjucks.svg .nunjucks
AddIcon /fancy-index/icons/pug.svg .pug
AddIcon /fancy-index/icons/adobe-photoshop.svg .psd
AddIcon /fancy-index/icons/adobe-illustrator.svg .ai
AddIcon /fancy-index/icons/stylus.svg .styl
AddIcon /fancy-index/icons/terminal.svg .sh .bash
AddIcon /fancy-index/icons/database.svg .sql .mysql .sqlite .dsql .db
AddIcon /fancy-index/icons/vagrant.svg vagrantfile Vagrantfile
AddIcon /fancy-index/icons/file-word.svg .doc .docx
AddIcon /fancy-index/icons/file-excel.svg .xls .xlsx
AddIcon /fancy-index/icons/yaml.svg .yml .yaml
AddIcon /fancy-index/icons/brainfuck.svg .b
AddIcon /fancy-index/icons/cobol.svg .cbl .cob .cpy
AddIcon /fancy-index/icons/docker.svg docker-compose.yml
AddIcon /fancy-index/icons/virtualbox.svg .ova .vbox
AddIcon /fancy-index/icons/rpm.svg .rpm
AddIcon /fancy-index/icons/deb.svg .deb
# FILE DESCRIPTIONS
AddDescription "MPEG Layer 3 Format" .mp3
AddDescription "MPEG Layer 4 Format" .mp4
AddDescription "SubRip subtitles format" .srt
AddDescription "GZIP compressed TAR archive" .tgz .tar.gz
AddDescription "GZIP compressed archive" .Z .z .gz .zip
AddDescription "RAR compressed archive" .rar
AddDescription "TAR compressed archive" .tar
AddDescription "ZIP compressed archive" .zip
AddDescription "Windows executable file" .exe
AddDescription "Common Gateway Interface" .cgi
AddDescription "Joint Photographics Experts Group" .jpg .jpeg .jpe
AddDescription "Graphic Interchange Format" .gif
AddDescription "Portable Network Graphic" .png
AddDescription "Vector graphic" .ps .ai .eps
AddDescription "Hypertext Markup Language" .html .shtml .htm
AddDescription "Cascading Style Sheet" .css
AddDescription "DocType Definition" .dtd
AddDescription "Extensible Markup Language" .xml
AddDescription "Win32 compressed HTML help" .chm
AddDescription "Adobe Portable Document Format" .pdf
AddDescription "Plain text file" .txt .nfo .faq .readme
AddDescription "Unix man page" .man
AddDescription "Email data" .eml .mbox
AddDescription "Microsoft Word document" .doc .docx
AddDescription "Microsoft Excel document" .xls .xlsx
AddDescription "PHP: Hypertext Preprocessor script" .php .php3 .php4
AddDescription "PHP: Hypertext Preprocessor source code" .phps
AddDescription "JavaScript Object Notation" .json
AddDescription "JavaScript" .js
AddDescription "Java code" .java
AddDescription "Unix shell script" .sh .shar .csh .ksh .command
AddDescription "Mac OS X shell script" .command
AddDescription "Configuration file" .conf
AddDescription "Mac OS X terminal" .term
AddDescription "BitTorrent file" .torrent
AddDescription "Windows link" .lnk .url
AddDescription "Scalable Vector Graphic" .svg
AddDescription "OpenDocument Text" .odt
AddDescription "OpenDocument Spreadsheet" .ods
AddDescription "OpenDocument Presentation" .odp
AddDescription "OpenDocument Graphics" .odg
AddDescription "OpenDocument Chart" .odc
AddDescription "OpenDocument Formula" .odf
AddDescription "OpenDocument Database" .odb
AddDescription "OpenDocument Image" .odi
AddDescription "OpenDocument Text Master" .odm
AddDescription "OpenDocument Text Template" .ott
AddDescription "OpenDocument Spreadsheet Template" .ots
AddDescription "OpenDocument Presentation Template" .otp
AddDescription "OpenDocument Graphics Template" .otg
AddDescription "YAML: Yet Another Markup Language" .yaml .yml
AddDescription "SASS: Syntactically Awesome Stylesheets" .sass
AddDescription "SCSS: Sassy Cascading Style Sheet" .scss
AddDescription "Travis configuration" .travis
AddDescription "RPM installation package" .rpm
AddDescription "Debian installation package" .deb
# DEFAULT DESCRIPTION
# AddDescription "[<span class='description'>Unknown item</span>]" *
</IfModule>