First, to enable CGI, go to the Netscape program group and click Administer Netscape Servers.
You must have Administrator privileges of the web server.
Enter the administrator ID and password, and click OK.
On the Netscape Server Selector screen, click on the name of your machine.
On the main menu bar across the top of the page, click Programs.
On the CGI directory screen under URL prefix, type cgi-bin.
Under CGI directory, enter the cgi-bin path, which is typically the following:
Netscape Enterprise Server 2.0:
<drive_letter>:\Netscape\Server\docs\cgi-bin
For Netscape Enterprise Server 3.0 and higher:
<drive_letter>:\Netscape\SuiteSpot\docs\cgi-bin
Now, you are ready to configure the NSAPI plug-in.
Edit the obj.conf file in the web server configuration directory, which is usually the following:
Netscape Enterprise Server 2.0:
<drive_letter>:\Netscape\Server\httpd-<machinename>\config
For Netscape Enterprise Server 3.0 and higher:
<drive_letter>:\Netscape\SuiteSpot\https-<machinename>\config
Tip
Make a copy of the obj.conf file before modifying it.
At the end of the Init section of the obj.conf file, add the following as lines:
Init fn="load-modules"
funcs=gxrequest,gxlog,gxinit,gxredirect,gxhtmlrequest shlib="<path
to KES bin dir>\<library>"
Init fn="gxinit"
The following table shows what you can specify for shlib:
In the Object name="cgi" section or sections, insert the following line immediately before the line Service fn="send-cgi":
Service fn="gxrequest"
Using the instructions in steps 8 and 9, edit the backup obj.conf file in the following directory:
For Netscape Enterprise Server:
<drive_letter>:\Netscape\SuiteSpot\https-<machinename>\conf_bk
UNIX only
Modify the start and stop scripts as follows:
In the start script:
GX_ROOTDIR=/home/diep/opt/KIVAsdk export GX_ROOTDIR
LD_LIBRARY_PATH=/home/diep/opt/KIVAsdk/
gxlib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH
In the stop script, add -9 after "kill" and - before the process file. For
example:
kill -9 -\Qcat /home/ns201/https-diep/logs/pid\Q
Restart the web server.