NameTrans Stage
Chapter
3
Predefined SAFs and the Request Handling Process
55
Example
document-root
Applicable in
NameTrans
-class directives.
The
document-root
function specifies the root document directory for the server.
If the physical path has not been set by a previous
NameTrans
function, the
http://
server-name
/
part of the path is replace by the physical pathname for the
document root.
nostat
(optional) prevents the server from performing a stat on a
specified URL whenever possible.
The effect of
nostat="
virtual-path
"
in the
NameTrans
function
assign-name
is that the server assumes that a
stat on the specified
virtual-path
will fail. Therefore, use
nostat
only when the path of the
virtual-path
does not
exist on the system, for example, for NSAPI plugin URLs,
to improve performance by avoiding unnecessary stats on
those URLs.
When the default
PathCheck
server functions are used,
the server does not stat for the paths
/
ntrans-base/virtual-path
and
/
ntrans-base/virtual-path
/*
if
ntrans-base
is set (the
default condition); it does not stat for the URLs
/
virtual-path
and
/
virtual-path
/*
if
ntrans-base
is not
set.
bucket
optional, common to all
obj.conf
functions
# This NameTrans directive is in the default object.
NameTrans fn=assign-name name=personnel from=/a/b/c/pers
...
<Object name=personnel>
...additional directives..
</Object>
NameTrans fn="assign-name" from="/perf" find-pathinfo-forward=""
name="perf"
NameTrans fn="assign-name" from="/nsfc" nostat="/nsfc"
name="nsfc"
Summary of Contents for ENTERPRISE SERVER 6.0
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 0 November 2001...
Page 134: ...CGI to NSAPI Conversion 134 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 306: ...cinfo 306 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 312: ...Sample MIME Types File 312 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 324: ...Buffered Streams 324 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 332: ...332 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 340: ...340 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 346: ...346 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 352: ...352 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...