beautypg.com

Installing and configuring nsapi adaptors – Apple WebObjects 3.5: Serving User Manual

Page 35

background image

Serving WebObjects

36

Installing and Configuring NSAPI Adaptors

If you have a Netscape server, use one of the NSAPI adaptors. Which NSAPI
adaptor to use, and the procedure for configuring it, depends on the type of
server you have. Adaptors are located in

NextLibrary/WOAdaptors/NSAPI

.

Note:

There is no requirement for installing an adaptor anywhere other than its

original location. If you wish, you can copy the adaptor to the server’s executable
or configuration directories, but ensure that the configuration specifications refer
to its proper location. The following procedures assume the original installed
locations.

To configure Netscape 2.0, 2.0.1, or 3.0NSAPI adaptors for all platforms,
complete the following procedure:

1. Locate the server configuration file in the directory cgi-bin

/config/obj.conf

where cgi-bin is the server’s cgi-bin directory.

2. Edit the configuration file to insert one an line similar to one of the

following:

In the

obj.conf

file insert the following:

Init fn=load-modules shlib=c:/NeXT/NextLibrary/WOAdap-

tors/NSAPI/2.0/WebObjects-NSAPI.dll funcs="WONetscapeInterface,WONSIn-

terfaceFindWebObjects"

This example is specific to Windows NT and NSAPI 2.0; for Solaris and
HPUX the name of the adaptor executable is

WebObjects-NSAPI.so

.

3. Locate the following line in

obj.conf

:

NameTrans from="/cgi-bin" fn="pfx2dir" dir=

"

cgi_bin_dir"

name="cgi"

Just before this line, insert the following line:

NameTrans from="/cgi-bin/WebObjects" fn="WONSInterfaceFindWebObjects"

name="webobjects"

If you have server...

use adaptor...

Netscape 2.0
(FastTrack/Enterprise)

2.0/WebObjects-NSAPI.[dll|so]

Netscape 2.0.1
(FastTrack/Enterprise)

2.0.1/WebObjects-NSAPI.[dll|so]

Netscape 3.0
(FastTrack/Enterprise)

3.0/WebObjects-NSAPI.[dll|so]