Type-By-Extension - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

ObjectType Stage
lang
charset
bucket
Examples
ObjectType fn=type-by-exp exp=*.test type=application/html
See Also
type-by-extension, force-type

type-by-extension

Applicable in
This function instructs the server to look in a table of MIME type mappings to find
the MIME type of the requested resource according to the extension of the
requested resource. The MIME type is added to the
back to the client.
The table of MIME type mappings is created by a
file, which loads a MIME types file or list and creates the mappings. For more
information about
Files." For more information about MIME types files, see Appendix B, "MIME
Types."
For example, the following two lines are part of a MIME types file:
type=text/html
type=text/plain
78
Netscape Enterprise Server NSAPI Programmer's Guide • November 2001
(optional) is the language assigned to a matching request (the
content-language header).
(optional) is the character set for the magnus-charset
parameter in rq->srvhdrs. If the browser sent the
Accept-charset header or its User-agent is mozilla/1.1
or newer, then append "; charset=
charset
where
parameter in rq->srvhdrs.
optional, common to all obj.conf functions
-class directives.
ObjectType
, see Chapter 8, "Virtual Server Configuration
server.xml
exts=htm,html
exts=txt
charset
is the value of the magnus-charset
content-type
element in the
MIME
" to content-type,
header sent
server.xml

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents