Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual page 27

Nsapi
Table of Contents

Advertisement

NameTrans
Translates the URL specified in the request from a logical URL to a physical file
system path for the requested resource. This may also result in redirection to
another site. For example:
NameTrans fn="document-root" root="D:/Netscape/Server4/docs"
This example calls the
D:/Netscape/Server4/docs
the
server_name
http://
which in this case is
server-name
http://
D:/Netscape/Server4/docs/doc1.html
PathCheck
Performs tests on the physical path determined by the
general, these tests determine whether the path is valid and whether the client
is allowed to access the requested resource. For example:
PathCheck fn="find-index" index-names="index.html,home.html"
This example calls the
index.html,home.html
instructs the server to look for a file called either
the requested directory.
ObjectType
Determines the MIME (Multi-purpose Internet Mail Encoding) type of the
requested resource. The MIME type has attributes
content type),
encoding
of the response to the client. The MIME type also helps determine which
directive the server should execute.
Service
The resulting type may be:
A common document type such as
the file name extension
An internal server type. Internal types always begin with
magnus-internal.
For example:
ObjectType fn="type-by-extension"
This example calls the
determine the MIME type according to the requested resource's file extension.
function with a
document-root
. The function
part of the requested to URL to the document root,
/
D:/Netscape/Server4/docs
is translated to
/doc1.html
function with an
find-index
. If the requested URL is a directory, this function
and
. The MIME type is sent in the headers
language
text/html
translates to the MIME type
.gif
type-by-extension
Server Instructions in obj.conf
argument of
root
function translates
document-root
. Thus a request for
.
NameTrans
index-names
or
index.html
(which indicates
type
or
image/gif
image/gif
function which causes the server to
Chapter 2
Syntax and Use of obj.conf
step. In
argument of
in
home.html
(for example,
).
27

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents