NameTrans Stage
60
Netscape Enterprise Server NSAPI Programmer’s Guide • April 2002 (Draft)
Examples
In the first example, the URL
http://
server-name
/cgi-bin/
resource (such as
http://x.y.z/cgi-bin/test.cgi
) is translated to the physical pathname
/httpd/cgi-local/
resource, (such as
/httpd/cgi-local/test.cgi
) and the
server also starts processing the directives in the object named
cgi
.
In the second example, the URL
http://
server-name
/icons/
resource (such as
http://x.y.z/icons/happy/smiley.gif
) is translated to the physical pathname
/users/nikki/images/
resource, (such as
/users/nikki/images/smiley.gif
)
find-pathinfo-forward
(optional) makes the server look for the PATHINFO
forward in the path right after the ntrans-base instead of
backward from the end of path as the server function
find-pathinfo
does by default.
The value you assign to this parameter is ignored. If you
do not wish to use this parameter, leave it out.
The
find-pathinfo-forward
parameter is ignored if
the
ntrans-base
parameter is not set in
rq->vars
when the server function
find-pathinfo
is called. By
default,
ntrans-base
is set.
This feature can improve performance for certain URLs by
reducing the number of stats performed in the server
function
find-pathinfo
.
On Windows NT/Windows 2000, this feature can also be
used to prevent the PATHINFO from the server URL
normalization process (changing '\' to '/') when the
PathCheck
server function
find-pathinfo
is used.
Some double-byte characters have hex values that may be
parsed as URL separator characters such as \ or ~. Using
the
find-pathinfo-forward
parameter can sometimes
prevent incorrect parsing of URLs containing double-byte
characters.
bucket
optional, common to all
obj.conf
functions
NameTrans fn=pfx2dir from=/cgi-bin dir=/httpd/cgi-local name=cgi
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...