Redirect - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

NameTrans fn=pfx2dir from=/icons/happy dir=/users/nikki/images
The third example shows the use of the
URL
server-name
http://
/export/home/cgi-bin/
NameTrans fn="pfx2dir" find-pathinfo-forward="" from="/cgi-bin"
dir="/export/home/cgi-bin" name="cgi"

redirect

Applicable in
NameTrans
The
function lets you change URLs and send the updated URL to the
redirect
client. When a client accesses your server with an old path, the server treats the
request as a request for the new URL.
Parameters
from
url
url-prefix
escape
bucket
Examples
In the first example, any request for
request for
http://tmpserver/
find-pathinfo-forward
resource is translated to the physical pathname
/cgi-bin/
resource.
-class directives.
specifies the prefix of the requested URI to match.
(maybe optional) specifies a complete URL to return to the
client. If you use this parameter, don't use url-prefix
(and vice-versa).
(maybe optional) is the new URL prefix to return to the
client. The from prefix is simply replaced by this URL
prefix. If you use this parameter, don't use url (and
vice-versa).
(optional) is a flag which tells the server to
util_uri_escape the URL before sending it. It should be
yes or no. The default is yes.
optional, common to all obj.conf functions
server-name
http://
whatever.
Chapter 3
Predefined SAFs and the Request Handling Process
NameTrans Stage
parameter. The
whatever is translated to a
/
59

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents