Objecttype; Setting The Type By File Extension - Netscape ENTERPRISE SERVER 6.1 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

Flow of Control in obj.conf
If the
matches the
PathCheck
default object.

ObjectType

Assuming that the
executes the
MIME type has three attributes: type, encoding, and language. When the server
sends the response to the client, the type, language, and encoding values are
transmitted in the headers of the response. The
server to determine which
the client.
If there is more than one
in the order in which they appear. However, once a directive sets an attribute of the
MIME type, further attempts to set the same attribute are ignored. The reason that
all
ObjectType
example
As with the
as a result of the
the matching object before executing the
object.

Setting the Type By File Extension

Usually the default way the server figures out the MIME type is by calling the
type-by-extension
MIME type according to the requested resource's file extension in the MIME types
table. This table was created during virtual server initialization by the MIME types
file, (which is usually called
For example, the entry in the MIME types table for the extensions
usually:
type=text/html
which says that all files that have the extension
formatted as HTML and the
Note that if you make changes to the MIME types file, you must reconfigure the
server before those changes can take effect.
38
Netscape Enterprise Server NSAPI Programmer's Guide • April 2002 (Draft)
directive assigned a name or generated a physical pathname that
NameTrans
or
name
ppath
directives in the matching object before applying the directives in the
PathCheck
directives to determine the MIME type of the request. The
ObjectType
ObjectType
directives are applied is that one directive may set one attribute, for
, while another directive sets a different attribute, such as
type
directives, if another object has been matched to the request
PathCheck
NameTrans
function. This function instructs the server to look up the
exts=htm,html
attribute of another object, the server first applies the
directives all approve access, the server next
directive to execute to generate the response to
Service
directive, the server applies all the directives
step, the server executes the
ObjectType
.
mime.types)
is
.
type
text/html
also frequently helps the
type
ObjectType
directives in the default
.html
or .
are text files
.htm
html
.
language
directives in
and
is
.htm

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.1

Table of Contents