The FILE module
This module transmits normal, unparsed, document files. Depending on
the configuration file it tags the returned document with the correct
MIME types and encodings, and also provides the correct length of the
document.
Configuration options (file.conf)
- content-types (table)
- Table of MIME types to use for different file suffixes.
- content-encodings (table)
- Table of MIME encodings to use for different file suffixes.
- default-type (string)
- The default MIME type to use if not found in the content-types
table. Defaults to "unknown".
Example configuration file
# file.conf
default-type = text/plain
content-encodings = {
.Z x-compress
.gz x-gzip
}
content-types = {
.html text/html
.txt text/plain
.tsv text/tab-separated-values
.gif image/gif
.jpeg image/jpeg
.tiff image/tiff
.xbm image/x-xbitmap
.ps application/postscript
.eps application/postscript
.rtf application/rtf
.mif application/x-mif
.dvi application/x-dvi
.man application/x-troff-man
.tar application/x-tar
.au audio/basic
.snd audio/basic
.mpeg video/mpeg
.qt video/quicktime
}