NameTrans Stage
Chapter
3
Predefined SAFs and the Request Handling Process
63
Examples
In the first example, any request for
http://
server-name
/
whatever is translated to a
request for
http://tmpserver/
whatever.
In the second example, any request for
http://
server-name
/toopopular/
whatever
is translated to a request for
http://bigger/better/morepopular/
whatever.
In the third example, any request that includes the string
Netscape
or
netscape
has its prefix stripped off and replaced with
http://www.netscape.com.
The
remainder of the URI/query string, if any, is attached to the new prefix. A request
for
http://www.example.com/Netscape
would be translated to
http://www.netscape.com
. A request for
http://www.example.com/netscape/foobar
would be translated to
http://www.netscape.com/foobar
.
strip-params
Applicable in
NameTrans
-class directives.
The
strip-params
function removes embedded semicolon-delimited parameters
from the path. For example, a URI of
/dir1;param1/dir2
would become a path of
/dir1/dir2
. When used, the
strip-params
function should be the first
NameTrans
directive listed.
Parameters
NameTrans fn=redirect from=/ url-prefix=http://tmpserver
NameTrans fn=redirect from=/toopopular
url=http://bigger/better/morepopular
NameTrans fn="redirect" from="/[Nn]etscape"
url-prefix="http://www.netscape.com" regexp="yes"
bucket
optional, common to all
obj.conf
functions
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...