How The Server Knows To Process Other Objects - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

The
section in the default object must contain exactly one directive that
NameTrans
invokes the
document-root
server_name
http://
/
been designated as the server's document root. For example:
NameTrans fn="document-root" root="D:/Netscape/Server4/docs"
The directive that invokes
section so that it is executed if no other
NameTrans
applicable.
The
(prefix to directory) function is used to set up additional mappings
pfx2dir
between URLs and directories. For example, the following directive translates the
URL
server_name
http://
D:/netscape/server4/docs/mycgi/
NameTrans fn="pfx2dir" from="/cgi"
dir="D:/netscape/server4/docs/mycgi"
Notice that if this directive appeared after the one that calls
would never be executed, with the result that the resultant directory pathname
would be
D:/netscape/server4/docs/cgi/
directive that invokes
section.

How the Server Knows to Process Other Objects

As a result of executing a
directives in another object. This happens if the
successfully executed specifies a name or generates a partial path that matches the
or
attribute of another object.
name
ppath
If the successful
NameTrans
argument, the server starts processing directives in the named object (defined with
the
tag) before processing directives in the default object for the rest of the
OBJECT
request handling process.
For example, the following
name
to any request whose URL starts with
cgi
<Object name="default">
...
NameTrans fn="pfx2dir" from="/cgi"
dir="D:/netscape/server4/docs/mycgi" name="cgi"
...
</Object>
function. This functions translates the
part of the requested URL to a physical directory that has
document-root
into the directory pathname
/cgi/
:
must be the last one in the
document-root
directive, the server might start processing
NameTrans
directive assigns a name by specifying a
directive in the default object assigns the
NameTrans
must be the last directive in the
directive is
NameTrans
document-root
(not
). This illustrates why the
mycgi
directive that was
NameTrans
server_name
http://
Chapter 2
Syntax and Use of obj.conf
Flow of Control in obj.conf
, it
NameTrans
name
.
/cgi/
33

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents