NameTrans Stage
Chapter
3
Predefined SAFs and the Request Handling Process
55
Example
See Also
qos-error
NameTrans Stage
NameTrans
stands for Name Translation.
NameTrans
directives translate virtual
URLs to physical directories on your server. For example, the URL
http://www.example.com/some/file
.html
could be translated to the full file-system path
/usr/netscape/servers/docs/some/file.html
NameTrans
directives should appear in the default object. If there is more than one
NameTrans
directive in an object, the server executes each one in order until one
succeeds.
The following NameTrans-class functions are described in detail in this section:
•
assign-name
tells the server to process directives in a named object.
•
document-root
translates a URL into a file system path by replacing the
http://
server-name
/
part of the requested resource with the document root
directory.
•
home-page
translates a request for the server’s root home page (
/
) to a specific
file.
•
pfx2dir
translates any URL beginning with a given prefix to a file system
directory and optionally enables directives in an additional named object.
•
redirect
redirects the client to a different URL.
•
strip-params removes embedded semicolon-delimited parameters from the
path.
•
unix-home
translates a URL to a specified directory within a user’s home
directory.
AuthTrans fn=qos-handler
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...