Note: Spacing is significant to configuration information; please read carefully. Items in brackets "<>" denote names or directory paths that you configure).
For additional information, check the documentation from Sun.
magnus.conf
file for your iPlanet Web Server 6.0 (e.g. /opt/iplanet/servers/https-/config/magnus.conf
).
At the end of the block of configuration items that are prefixed with Init
, add the following two lines:
Init fn="load-modules" funcs="WebObjects_init,WebObjectsNameTrans,WebObjectsRequest" shlib=<pathToNSAPIadaptor>
Init fn="WebObjects_init" root=<pathToWebServer'sDocRoot> config=<woconfigurl>
where:
<pathToNSAPIadaptor>
= the path to the NSAPI shared library (e.g. /opt/Apple/Library/WebObjects/Adaptors/NSAPI/libWebObjects.so
on Solaris, or C:/Apple/Library/WebObjects/Adaptors/NSAPI/WebObjects.dll
on Windows)
<pathToWebServer'sDocRoot>
= the path to the document root of your web server (e.g. /opt/iplanet/servers/docs
)
<woconfigurl>
= the URL to access wotaskd on the local machine (e.g. http://localhost:1085
)The URL entered will depend on how you wish to retrieve adaptor configuration:
file:///Local/Library/WebObjects/Configuration/WebObjects.xml http://www.company.com/private/woappconfig.xml
http://woserv1:1085,http://woserv2:1085,http://woserv2:1085
webobjects://239.128.14.2:1085
Init fn="WebObjects_init" root="/opt/iplanet/servers/docs" config="http://localhost:1085" confinterval="10"
In a text editor, open the obj.conf
file for your iPlanet Web Server 6.0 (e.g.
/opt/iplanet/servers/https-
).
Add the following line as the very first line after the line containing <Object name=default>
:
NameTrans fn="WebObjectsNameTrans" from="/cgi-bin/WebObjects"
name="webobjects"
Add the following three lines at the very end of the file:
<Object name="webobjects">
Service fn="WebObjectsRequest"
</Object>
WebObjects 5.0 now uses non-blocking sockets nbsocket.c
even for NSAPI adaptor. These functions provide a thread safe, platform independent socket api. This is fine for most installations. It used to be iPlanet's socket cover functions (the nssocket.c
transport).