2023-01-01 07:50:03 +00:00
# enable indexing
Options +Indexes
# index options
IndexOptions +Charset=UTF-8 +FancyIndexing +FoldersFirst +HTMLTable +IconsAreLinks +IgnoreCase +NameWidth=* +SuppressDescription +SuppressRules +XHTML -SuppressHTMLPreamble
# favicon & meta viewport
IndexHeadInsert "\
2024-02-23 08:25:03 +00:00
<link rel=\"shortcut icon\" href=\"/documents/web/stashbox/theme/favicon.ico\" />\
2023-01-01 07:50:03 +00:00
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />"
2024-02-23 08:25:03 +00:00
#IndexIgnore .htaccess /documents/web/stashbox/theme/
2023-01-01 07:50:03 +00:00
#
# general icons (blank, directory, parent directory)
#
2024-02-23 08:25:03 +00:00
AddIcon /documents/web/stashbox/theme/icons/empty.svg ^^BLANKICON^^
AddIcon /documents/web/stashbox/theme/icons/folder.svg ^^DIRECTORY^^
AddIcon /documents/web/stashbox/theme/icons/user-home.svg ..
2023-01-01 07:50:03 +00:00
#
# unused icons (that should be soon removed)
#
# folder-open.svg => maybe a js when a folder is hovered
# folder-document.svg
#
#
# image
#
# ext: ai eps ps
2024-02-23 08:25:03 +00:00
AddIconByType (ps,/documents/web/stashbox/theme/icons/image-x-eps.svg) application/postscript
2023-01-01 07:50:03 +00:00
# ext: bmp
2024-02-23 08:25:03 +00:00
AddIconByType (bmp,/documents/web/stashbox/theme/icons/image-bmp.svg) image/bmp
2023-01-01 07:50:03 +00:00
# ext: gif
2024-02-23 08:25:03 +00:00
AddIconByType (gif,/documents/web/stashbox/theme/icons/image-gif.svg) image/gif
2023-01-01 07:50:03 +00:00
# ext: ico
2024-02-23 08:25:03 +00:00
AddIconByType (ico,/documents/web/stashbox/theme/icons/image-x-ico.svg) image/x-icon
2023-01-01 07:50:03 +00:00
# ext: jpg jpeg jpe
2024-02-23 08:25:03 +00:00
AddIconByType (jpg,/documents/web/stashbox/theme/icons/image-jpeg.svg) image/jpeg
2023-01-01 07:50:03 +00:00
# ext: png
2024-02-23 08:25:03 +00:00
AddIconByType (png,/documents/web/stashbox/theme/icons/image-png.svg) image/png
2023-01-01 07:50:03 +00:00
# ext: psd
2024-02-23 08:25:03 +00:00
AddIconByType (psd,/documents/web/stashbox/theme/icons/image-x-psd.svg) image/vnd.adobe.photoshop
2023-01-01 07:50:03 +00:00
# ext: svg svgz
2024-02-23 08:25:03 +00:00
AddIconByType (draw,/documents/web/stashbox/theme/icons/x-office-drawing.svg) image/svg+xml
2023-01-01 07:50:03 +00:00
# ext: tiff tif
2024-02-23 08:25:03 +00:00
AddIconByType (tiff,/documents/web/stashbox/theme/icons/image-tiff.svg) image/tiff
2023-01-01 07:50:03 +00:00
# xcf media type not yet included in apache, fallback to AddIcon
# ext: xcf
2024-02-23 08:25:03 +00:00
#AddIconByType (xcf,/documents/web/stashbox/theme/icons/image-x-xcf.svg) image/x-xcf
AddIcon /documents/web/stashbox/theme/icons/image-x-xcf.svg .xcf
2023-01-01 07:50:03 +00:00
# all other images
# ext: bmp cgm g3 gif ief jpeg jpg jpe ktx png btif sgi svg svgz tiff tif psd uvi uvvi uvg uvvg djvu djv sub dwg dxf fbs fpx fst mmr rlc mdi wdp npx wbmp xif webp 3ds ras cmx fh fhc fh4 fh5 fh7 ico sid pcx pic pct pnm pbm pgm ppm rgb tga xbm xpm xwd
# ext: odg
# ext: otg
# ext: odi
# ext: oti
2024-02-23 08:25:03 +00:00
AddIconByType (image,/documents/web/stashbox/theme/icons/image-x-generic.svg) image/* \
2023-01-01 07:50:03 +00:00
application/vnd.oasis.opendocument.graphics \
application/vnd.oasis.opendocument.graphics-template \
application/vnd.oasis.opendocument.image \
application/vnd.oasis.opendocument.image-template
#
# audio
#
# audio playlist
# ext: m3u
# ext: m3u8
# ext: pls
2024-02-23 08:25:03 +00:00
AddIconByType (playlist,/documents/web/stashbox/theme/icons/audio-x-mp3-playlist.svg) audio/x-mpegurl \
2023-01-01 07:50:03 +00:00
application/vnd.apple.mpegurl \
application/pls+xml
# all audio
# ext: adp au snd mid midi kar rmi m4a mp4a mpga mp2 mp2a mp3 m2a m3a oga ogg spx s3m sil uva uvva eol dra dts dtshd lvp pya ecelp4800 ecelp7470 ecelp9600 rip weba aac aif aiff aifc caf flac mka m3u wax wma xm rmp ram ra wav
2024-02-23 08:25:03 +00:00
AddIconByType (audio,/documents/web/stashbox/theme/icons/audio-x-generic.svg) audio/*
2023-01-01 07:50:03 +00:00
#
# video
#
# video playlist
# ext: mxu m4u
2024-02-23 08:25:03 +00:00
AddIconByType (playlist,/documents/web/stashbox/theme/icons/video-x-generic.svg) video/vnd.mpegurl
2023-01-01 07:50:03 +00:00
# all video
# ext: 3g2 3gp h261 h263 h264 jpgv jpm jpgm mj2 mjp2 mp4 mp4v mpg4 mpeg mpg mpe m1v m2v ogv qt mov uvh uvvh uvm uvvm uvp uvvp uvs uvvs uvv uvvv dvb fvt mxu m4u pyv uvu uvvu viv webm f4v fli flv m4v mkv mk3d mks mng asf asx avi vob wmv wm wmx wvx movie smv
2024-02-23 08:25:03 +00:00
AddIconByType (video,/documents/web/stashbox/theme/icons/video-x-generic.svg) video/*
2023-01-01 07:50:03 +00:00
#
# internet
#
# ext: html htm
# ext: xhtml xht
# ext: uri uris urls
2024-02-23 08:25:03 +00:00
AddIconByType (html,/documents/web/stashbox/theme/icons/text-html.svg) text/html \
2023-01-01 07:50:03 +00:00
application/xhtml+xml \
text/uri-list
# ext: rss
# ext: atom
2024-02-23 08:25:03 +00:00
AddIconByType (rss,/documents/web/stashbox/theme/icons/application-rss+xml.svg) application/rss+xml \
2023-01-01 07:50:03 +00:00
application/atom+xml
# ext: ics ifb
# ext: vcs
2024-02-23 08:25:03 +00:00
AddIconByType (vcal,/documents/web/stashbox/theme/icons/evolution-calendar.svg) text/calendar \
2023-01-01 07:50:03 +00:00
text/x-vcalendar
# ext: vcard
# ext: vcf
2024-02-23 08:25:03 +00:00
AddIconByType (vcard,/documents/web/stashbox/theme/icons/addressbook.svg) text/vcard \
2023-01-01 07:50:03 +00:00
text/x-vcard
# ext: torrent
2024-02-23 08:25:03 +00:00
AddIconByType (torrent,/documents/web/stashbox/theme/icons/application-x-bittorrent.svg) application/x-bittorrent
2023-01-01 07:50:03 +00:00
#
# office
#
# ext: odc
# ext: otc
# ext: odf
# ext: odft
# ext: ods
# ext: ots
# ext: csv
# ext: xls xlm xla xlc xlt xlw
# ext: xlsx
2024-02-23 08:25:03 +00:00
AddIconByType (calc,/documents/web/stashbox/theme/icons/x-office-spreadsheet.svg) application/vnd.oasis.opendocument.chart \
2023-01-01 07:50:03 +00:00
application/vnd.oasis.opendocument.chart-template \
application/vnd.oasis.opendocument.formula \
application/vnd.oasis.opendocument.formula-template \
application/vnd.oasis.opendocument.spreadsheet \
application/vnd.oasis.opendocument.spreadsheet-template \
text/csv \
application/vnd.ms-excel \
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
# ext: odt
# ext: odm
# ext: ott
# ext: oth
# ext: doc dot
# ext: docx
2024-02-23 08:25:03 +00:00
AddIconByType (doc,/documents/web/stashbox/theme/icons/x-office-document.svg) application/vnd.oasis.opendocument.text \
2023-01-01 07:50:03 +00:00
application/vnd.oasis.opendocument.text-master \
application/vnd.oasis.opendocument.text-template \
application/vnd.oasis.opendocument.text-web \
application/msword \
application/vnd.openxmlformats-officedocument.wordprocessingml.document
# ext: odp
# ext: otp
# ext: ppt pps pot
# ext: pptx
# ext: ppsx
2024-02-23 08:25:03 +00:00
AddIconByType (slideshow,/documents/web/stashbox/theme/icons/x-office-presentation.svg) application/vnd.oasis.opendocument.presentation \
2023-01-01 07:50:03 +00:00
application/vnd.oasis.opendocument.presentation-template \
application/vnd.ms-powerpoint \
application/vnd.openxmlformats-officedocument.presentationml.presentation \
application/vnd.openxmlformats-officedocument.presentationml.slideshow
# ext: mdb
# ext: odb
2024-02-23 08:25:03 +00:00
AddIconByType (database,/documents/web/stashbox/theme/icons/text-x-sql.svg) application/x-msaccess \
2023-01-01 07:50:03 +00:00
application/vnd.oasis.opendocument.database
# ext: pdf
2024-02-23 08:25:03 +00:00
AddIconByType (pdf,/documents/web/stashbox/theme/icons/application-pdf.svg) application/pdf
2023-01-01 07:50:03 +00:00
# ext: rtf
2024-02-23 08:25:03 +00:00
AddIconByType (rtf,/documents/web/stashbox/theme/icons/text-richtext.svg) application/rtf
2023-01-01 07:50:03 +00:00
# ext: latex
# ext: tex
2024-02-23 08:25:03 +00:00
AddIconByType (tex,/documents/web/stashbox/theme/icons/text-x-tex.svg) application/x-latex \
2023-01-01 07:50:03 +00:00
application/x-tex
#
# programming
#
# h media type not yet included in apache, fallback to AddIcon
# ext: h
2024-02-23 08:25:03 +00:00
#AddIconByType (h,/documents/web/stashbox/theme/icons/text-x-chdr.svg) text/x-h
AddIcon /documents/web/stashbox/theme/icons/text-x-chdr.svg .h
2023-01-01 07:50:03 +00:00
# hpp files do not have a specific media type, fallback to AddIcon
# ext: hpp
2024-02-23 08:25:03 +00:00
AddIcon /documents/web/stashbox/theme/icons/text-x-c++hdr.svg .hpp
2023-01-01 07:50:03 +00:00
# cpp files do not have a specific media type, fallback to AddIcon
# ext: cpp
2024-02-23 08:25:03 +00:00
AddIcon /documents/web/stashbox/theme/icons/text-x-c++.svg .cpp
2023-01-01 07:50:03 +00:00
# ext: c cc cxx cpp h hh dic
2024-02-23 08:25:03 +00:00
AddIconByType (c,/documents/web/stashbox/theme/icons/text-x-c.svg) text/x-c
2023-01-01 07:50:03 +00:00
# ext: java
# ext: jar
# ext: class
2024-02-23 08:25:03 +00:00
AddIconByType (java,/documents/web/stashbox/theme/icons/text-x-java.svg) text/x-java-source \
2023-01-01 07:50:03 +00:00
application/java-archive \
application/java-vm
# sass and scss files do not have a specific media type, fallback to AddIcon
# ext: sass scss
2024-02-23 08:25:03 +00:00
AddIcon /documents/web/stashbox/theme/icons/text-css.svg .sass .scss
2023-01-01 07:50:03 +00:00
# ext: css
2024-02-23 08:25:03 +00:00
AddIconByType (css,/documents/web/stashbox/theme/icons/text-css.svg) text/css
2023-01-01 07:50:03 +00:00
# ext: js
# ext: json
2024-02-23 08:25:03 +00:00
AddIconByType (js,/documents/web/stashbox/theme/icons/text-x-javascript.svg) application/javascript \
2023-01-01 07:50:03 +00:00
application/json
# diff and patch files do not have a specific media type, fallback to AddIcon
# ext: diff patch
2024-02-23 08:25:03 +00:00
AddIcon /documents/web/stashbox/theme/icons/text-x-source.svg .diff .patch
2023-01-01 07:50:03 +00:00
# makefile files do not have a specific media type, fallback to AddIcon
# ext: Makefile
2024-02-23 08:25:03 +00:00
AddIcon /documents/web/stashbox/theme/icons/text-x-makefile.svg Makefile
2023-01-01 07:50:03 +00:00
# php files do not have a specific media type, fallback to AddIcon
# ext: php phtml
2024-02-23 08:25:03 +00:00
AddIcon /documents/web/stashbox/theme/icons/application-x-php.svg .php .phtml
2023-01-01 07:50:03 +00:00
# python files do not have a specific media type, fallback to AddIcon
# ext: py
2024-02-23 08:25:03 +00:00
AddIcon /documents/web/stashbox/theme/icons/text-x-python.svg .py
2023-01-01 07:50:03 +00:00
# ruby files do not have a specific media type, fallback to AddIcon
# ext: rb
2024-02-23 08:25:03 +00:00
AddIcon /documents/web/stashbox/theme/icons/application-x-ruby.svg .rb
2023-01-01 07:50:03 +00:00
# ext: sql
2024-02-23 08:25:03 +00:00
AddIconByType (sql,/documents/web/stashbox/theme/icons/text-x-sql.svg) application/x-sql
2023-01-01 07:50:03 +00:00
# ext: xml xsl
# ext: dtd
2024-02-23 08:25:03 +00:00
AddIconByType (xml,/documents/web/stashbox/theme/icons/text-xml.svg) application/xml \
2023-01-01 07:50:03 +00:00
application/xml-dtd
#
# sysadmin
#
# pkg files do not have a specific media type, fallback to AddIcon
# ext: pkg
2024-02-23 08:25:03 +00:00
AddIcon /documents/web/stashbox/theme/icons/package-x-generic.svg .pkg
2023-01-01 07:50:03 +00:00
# ext: bin dms lrf mar so dist distz pkg bpk dump elc deploy
2024-02-23 08:25:03 +00:00
AddIconByType (bin,/documents/web/stashbox/theme/icons/multipart-encrypted.svg) application/octet-stream
2023-01-01 07:50:03 +00:00
# ext: iso
2024-02-23 08:25:03 +00:00
AddIconByType (cd,/documents/web/stashbox/theme/icons/application-x-cd-image.svg) application/x-iso9660-image
2023-01-01 07:50:03 +00:00
# ext: deb udeb
2024-02-23 08:25:03 +00:00
AddIconByType (deb,/documents/web/stashbox/theme/icons/deb.svg) application/x-debian-package
2023-01-01 07:50:03 +00:00
# msi files do not have a specific media type, fallback to AddIcon
# ext: msi
2024-02-23 08:25:03 +00:00
AddIcon /documents/web/stashbox/theme/icons/text-x-install.svg .msi
2023-01-01 07:50:03 +00:00
# ext: exe dll com bat msi
2024-02-23 08:25:03 +00:00
AddIconByType (exe,/documents/web/stashbox/theme/icons/application-x-ms-dos-executable.svg) application/x-msdownload
2023-01-01 07:50:03 +00:00
# ext: dmg
# ext: mpkg
# ext: apk
2024-02-23 08:25:03 +00:00
AddIconByType (package,/documents/web/stashbox/theme/icons/package-x-generic.svg) application/x-apple-diskimage \
2023-01-01 07:50:03 +00:00
application/vnd.apple.installer+xml \
application/vnd.android.package-archive
# rpm files do not have a specific media type, fallback to AddIcon
# ext: rpm
2024-02-23 08:25:03 +00:00
AddIcon /documents/web/stashbox/theme/icons/rpm.svg .rpm
2023-01-01 07:50:03 +00:00
# ext: sh
2024-02-23 08:25:03 +00:00
AddIconByType (script,/documents/web/stashbox/theme/icons/text-x-script.svg) application/x-sh
2023-01-01 07:50:03 +00:00
# ext: ttc otf ttf woff2 woff
2024-02-23 08:25:03 +00:00
AddIconByType (font,/documents/web/stashbox/theme/icons/font-x-generic.svg) font/*
2023-01-01 07:50:03 +00:00
#
# archives
#
# ext: gz
2024-02-23 08:25:03 +00:00
AddIconByType (gzip,/documents/web/stashbox/theme/icons/application-x-archive.svg) application/x-gzip
2023-01-01 07:50:03 +00:00
# gzip media type does not include .gzip file extension, fallback to AddIcon
# ext: gzip
2024-02-23 08:25:03 +00:00
AddIcon /documents/web/stashbox/theme/icons/application-x-archive.svg .gzip
2023-01-01 07:50:03 +00:00
# ext: rar
2024-02-23 08:25:03 +00:00
AddIconByType (rar,/documents/web/stashbox/theme/icons/application-x-rar.svg) application/x-rar-compressed
2023-01-01 07:50:03 +00:00
# ext: tar
2024-02-23 08:25:03 +00:00
AddIconByType (tar,/documents/web/stashbox/theme/icons/application-x-tar.svg) application/x-tar
2023-01-01 07:50:03 +00:00
# ext: zip
2024-02-23 08:25:03 +00:00
AddIconByType (zip,/documents/web/stashbox/theme/icons/application-x-zip.svg) application/zip
2023-01-01 07:50:03 +00:00
# ext: 7z bz bz2 cab
2024-02-23 08:25:03 +00:00
AddIconByType (archive,/documents/web/stashbox/theme/icons/application-x-archive.svg) application/x-7z-compressed \
2023-01-01 07:50:03 +00:00
application/x-bzip \
application/x-bzip2 \
application/vnd.ms-cab-compressed
#
# books
#
# ext: cbr cba cbt cbz cb7
2024-02-23 08:25:03 +00:00
AddIconByType (text,/documents/web/stashbox/theme/icons/image-x-generic.svg) application/x-cbr
2023-01-01 07:50:03 +00:00
# ext: epub
# ext: prc mobi
# ext: azw
2024-02-23 08:25:03 +00:00
AddIconByType (text,/documents/web/stashbox/theme/icons/text-plain.svg) application/epub+zip \
2023-01-01 07:50:03 +00:00
application/x-mobipocket-ebook \
application/vnd.amazon.ebook
#
# text
#
# readme files do not have a specific media type, fallback to AddIcon
# ext: README
2024-02-23 08:25:03 +00:00
AddIcon /documents/web/stashbox/theme/icons/text-x-readme.svg README
2023-01-01 07:50:03 +00:00
# markdown media type not yet included in apache, fallback to AddIcon
# ext: markdown md
2024-02-23 08:25:03 +00:00
#AddIconByType (markdown,/documents/web/stashbox/theme/icons/text-richtext.svg) text/mardown
AddIcon /documents/web/stashbox/theme/icons/text-richtext.svg .markdown .md
2023-01-01 07:50:03 +00:00
# this directive has to be at the end of the file because the text/* media type is very generic and should not be interpreted before other more specific directives
# ext: appcache ics ifb css csv html htm n3 txt text conf def list log in dsc rtx sgml sgm tsv t tr roff man me ms ttl uri uris urls vcard curl dcurl mcurl scurl sub fly flx gv 3dml spot jad wmls wml s asm c cc cxx cpp h hh dic f for f77 f90 java nfo opml p pas etx sfv uu vcs vcf
2024-02-23 08:25:03 +00:00
AddIconByType (text,/documents/web/stashbox/theme/icons/text-plain.svg) text/*
2023-01-01 07:50:03 +00:00
#
# default
#
2024-02-23 08:25:03 +00:00
DefaultIcon /documents/web/stashbox/theme/icons/empty.svg
2023-01-01 07:50:03 +00:00
#
# theme files
#
2024-02-23 08:25:03 +00:00
HeaderName /documents/web/stashbox/theme/header.html
ReadmeName /documents/web/stashbox/theme/footer.html
IndexStyleSheet /documents/web/stashbox/theme/style.css
2023-01-01 07:50:03 +00:00
#
# error pages
#
2024-02-23 08:25:03 +00:00
ErrorDocument 400 /documents/web/stashbox/theme/400.html
ErrorDocument 403 /documents/web/stashbox/theme/403.html
ErrorDocument 404 /documents/web/stashbox/theme/404.html
ErrorDocument 408 /documents/web/stashbox/theme/408.html
ErrorDocument 500 /documents/web/stashbox/theme/500.html
ErrorDocument 502 /documents/web/stashbox/theme/502.html