Technical data

13 Installing and Configuring the Netscape Enterprise Server Plug-In (NSAPI)
13-6 Administration Guide
Where NETSCAPE_HOME is the root directory of the NES installation, and
INSTANCE_NAME is the particular “instance” or server configuration that you are
using. For example, on a UNIX machine called
myunixmachine, the obj.conf
file would be found here:
/usr/local/netscape/enterprise-351/
https-myunixmachine/config/obj.conf
2. Instruct NES to load the native library as an NSAPI module
Add the following lines to the beginning of the
magnus.conf file. These lines
instruct NES to load the native library (the
.so or .dll file) as an NSAPI
module:
Init fn="load-modules" funcs="wl_proxy,wl_init"\
shlib=/usr/local/netscape/plugins/SHARED_LIBRARY
Init fn="wl_init"
Where SHARED_LIBRARY is the shared object or dll (for example
libproxy.so) that you installed in step 1. under “Installing and Configuring the
Netscape Enterprise Server Plug-In” on page 13-3. The function
load-modules” tags the shared library for loading when NES starts up. The
values “
wl_proxy” and “wl_init” identify the functions that the Netscape
Enterprise Server Plug-In executes.
3. If you want to proxy requests by URL, (also called proxying by path.) create a
separate
<Object> tag for each URL that you want to proxy and define the
PathTrim parameter. ( To proxy requests by MIME type, see step 4. ) Proxying
by path supersedes proxying by MIME type. The following is an example of an
<Object> tag that proxies a request containing the string */weblogic/*.
<Object name="weblogic" ppath="*/weblogic/*">
Service fn=wl_proxy WebLogicHost=myserver.com\
WebLogicPort=7001 PathTrim="/weblogic"
</Object>
To create an <Object> tag to proxy requests by URL:
a. Specify a name for this object (optional) inside the opening
<Object> tag using
the
name attribute. The name attribute is informational only and is not used by
the Netscape Enterprise Server Plug-In. For example:
<Object name=myObject ...>
b. Specify the URL to be proxied within the <Object> tag, using the ppath
attribute. For example:
<Object name=myObject ppath="*/weblogic/*>