Stashbox/htaccess

400 lines
15 KiB
Plaintext
Raw Normal View History

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 "\
<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\" />"
#IndexIgnore .htaccess /documents/web/stashbox/theme/
2023-01-01 07:50:03 +00:00
#
# general icons (blank, directory, parent directory)
#
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
AddIconByType (ps,/documents/web/stashbox/theme/icons/image-x-eps.svg) application/postscript
2023-01-01 07:50:03 +00:00
# ext: bmp
AddIconByType (bmp,/documents/web/stashbox/theme/icons/image-bmp.svg) image/bmp
2023-01-01 07:50:03 +00:00
# ext: gif
AddIconByType (gif,/documents/web/stashbox/theme/icons/image-gif.svg) image/gif
2023-01-01 07:50:03 +00:00
# ext: ico
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
AddIconByType (jpg,/documents/web/stashbox/theme/icons/image-jpeg.svg) image/jpeg
2023-01-01 07:50:03 +00:00
# ext: png
AddIconByType (png,/documents/web/stashbox/theme/icons/image-png.svg) image/png
2023-01-01 07:50:03 +00:00
# ext: psd
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
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
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
#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
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
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
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
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
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
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
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
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
AddIconByType (vcard,/documents/web/stashbox/theme/icons/addressbook.svg) text/vcard \
2023-01-01 07:50:03 +00:00
text/x-vcard
# ext: torrent
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
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
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
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
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
AddIconByType (pdf,/documents/web/stashbox/theme/icons/application-pdf.svg) application/pdf
2023-01-01 07:50:03 +00:00
# ext: rtf
AddIconByType (rtf,/documents/web/stashbox/theme/icons/text-richtext.svg) application/rtf
2023-01-01 07:50:03 +00:00
# ext: latex
# ext: tex
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
#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
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
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
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
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
AddIcon /documents/web/stashbox/theme/icons/text-css.svg .sass .scss
2023-01-01 07:50:03 +00:00
# ext: css
AddIconByType (css,/documents/web/stashbox/theme/icons/text-css.svg) text/css
2023-01-01 07:50:03 +00:00
# ext: js
# ext: json
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
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
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
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
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
AddIcon /documents/web/stashbox/theme/icons/application-x-ruby.svg .rb
2023-01-01 07:50:03 +00:00
# ext: sql
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
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
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
AddIconByType (bin,/documents/web/stashbox/theme/icons/multipart-encrypted.svg) application/octet-stream
2023-01-01 07:50:03 +00:00
# ext: iso
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
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
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
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
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
AddIcon /documents/web/stashbox/theme/icons/rpm.svg .rpm
2023-01-01 07:50:03 +00:00
# ext: sh
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
AddIconByType (font,/documents/web/stashbox/theme/icons/font-x-generic.svg) font/*
2023-01-01 07:50:03 +00:00
#
# archives
#
# ext: gz
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
AddIcon /documents/web/stashbox/theme/icons/application-x-archive.svg .gzip
2023-01-01 07:50:03 +00:00
# ext: rar
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
AddIconByType (tar,/documents/web/stashbox/theme/icons/application-x-tar.svg) application/x-tar
2023-01-01 07:50:03 +00:00
# ext: zip
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
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
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
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
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
#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
AddIconByType (text,/documents/web/stashbox/theme/icons/text-plain.svg) text/*
2023-01-01 07:50:03 +00:00
#
# default
#
DefaultIcon /documents/web/stashbox/theme/icons/empty.svg
2023-01-01 07:50:03 +00:00
#
# theme files
#
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
#
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