The <Object> Tag and the <Client> Tag
32
Netscape Enterprise Server NSAPI Programmer’s Guide • April 2002 (Draft)
Objects that Use the name Attribute
If a
NameTrans
directive in the default object specifies a
name
argument, the server
switches to processing the directives in the object of that name before processing
the remaining directives in the default object.
For example, the following
NameTrans
directive in the default object assigns the
name
cgi
to any request whose URL starts with
http://
server_name
/cgi/
.
When that
NameTrans
directive is executed, the server starts processing directives
in the object named
cgi
:
Object that Use the ppath Attribute
When the server finishes processing the
NameTrans
directives in the default object,
the logical URL of the request will have been converted to a physical pathname. If
this physical pathname matches the
ppath
attribute of another object in
obj.conf
,
the server switches to processing the directives in that object before processing the
remaining ones in the default object.
For example, the following
NameTrans
directive translates the
http://
server_name
/
part of the requested URL to
D:/Netscape/Servers/docs/
(which is the document root directory).
<Object name="default">
NameTrans fn="pfx2dir" from="/cgi"
dir="D:/netscape/servers/docs/mycgi" name="cgi"
...
</Object>
<Object name="cgi">
more directives...
</Object>
<Object name="default">
NameTrans fn="document-root" root="D:/Netscape/Servers/docs"
...
</Object>
Summary of Contents for ENTERPRISE SERVER 6.1
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Page 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...