SREhttp/2 Manual || Edit MIMETYPE.CFG

Adding new extension-to-mimetype mappings

For static resources, SREhttp/2 uses the file extension to determine what the mimetype is. The mimetype is then used in the Content-Type response header; a response header that most browsers use when determining how to display the resource.

SREhttp/2 has a limited set of the most common extensions hardcoded. To expand on this set (to add new extension-to-mimetype mappings), you can modify the MIMETYPE.CFG configuration file(s).

Notes:
  • The MIMETYPE.CFG files (like all SREhttp/2 configuration files) are text files
  • SREhttp/2 uses a default MIMETYPE.CFG file (typically located in the SREHTTP2\CFG directory).
  • SREhttp/2 also uses host-specific versions of MIMETYPE.CFG (typically located in subdirectories under the SREHTTP2\CFG directory) (see HOSTDATA.HTM for more details on SREhttp/2's host-specific parameter files).
  • You can use the SREhttp/2 configurator to modify parameters in any of the MIMETYPE.CFG files.

MIMETYPE.CFG contains entries that define these extension-to-mimetype mappings.

Syntax:
    type/subtype ext1, ext2, ...

Example:
   text/plain C, FOR, PAS, ASM, BAS, JAVA

which means:

all files with extensions of .C, .FOR, .PASC, .ASM, .BAS, and .JAVA are assumed to have a mimetype of text/plain.

Notes


Updated on 27 September 2002