Sambar Server Documentation
|
MIME Types
|
MIME types are loaded by the Sambar Server from the mime.ini file
found in the config directory. This file is loaded at Server
startup; changes to the file require a server restart before they
become effective.
The mime.ini file contains a list of MIME entries of the form:
Where definition is the MIME type such as image/gif and
extension is the file extension that identifies the MIME type
(i.e. gif). The extension match is case insensitive and must
match exactly with the characters/digits following the period
in the file name. Any files without an extension or with an
extension that does exist in the mime.ini file are sent as the
"Default MIME Type" found in the config.ini file; by default,
this type is text/plain.
There can be many extensions for a given definition as long
as each is on a separate line. If there are duplicate extensions,
the last extension entry found in the file overrides any previous
entries.
If the MIME definition includes an equals (=) sign, the definition
must be enclosed in quotes. The following illustrates how to
specify the character set of HTML MIME files.
"text/html;charset=ISO-8859-2" = html
© 1998 Sambar Technologies.
All rights reserved. Terms of Use.