Previous Topic: Configure the IIS 6.0 Proxy Plug-inNext Topic: Configure the Apache Proxy Plug-in


Configure the iPlanet Proxy Plug-in

To configure the plug-in, modify the following iPlanet configuration files:

The iPlanet configuration files have strict rules about the placement of text. To avoid problems, note the following points:

The iPlanet configuration files for your iPlanet instance are found in the following location:

iplanet_home/https-instance_name/config/

where iplanet_home is the root directory of the iPlanet installation and instance_name is your particular server configuration.

Follow these steps:

  1. From the weblogic_home/server/lib directory, copy the libproxy.so file that corresponds to your version of your iPlanet Web Server to the file system where you installed iPlanet.
  2. In a text editor, modify the iPlanet magnus.conf file.

    To instruct iPlanet to load the libproxy.so file as an iPlanet module, add the following lines to the beginning of the magnus.conf file:

    Init fn="load-modules" funcs="wl_proxy,wl_init"\
    shlib=path in file system from step 1/libproxy.so
    Init fn="wl_init"
    

    For example:

    Init fn="load-modules" funcs="wl_proxy,wl_init"\
    shlib=/usr/local/netscape/plugins/libproxy.so
    Init fn="wl_init"
    

    The function load-modules tags the shared library for loading when iPlanet starts up. The values wl_proxy and wl_init identify the functions that the plug-in executes.

  3. In a text editor, modify the iPlanet obj.conf file as follows:
    1. After the last line that begins with the following text:

      NameTrans fn=....

      Add the following Service directive to the Object name="default" section:

      Service method="(GET|HEAD|POST|PUT)" type=text/jsp fn="wl-proxy"
      

      Note: You may add this directive in a line following existing Service directives.

    2. Add the following code to the end of the file:
      <Object name="idm" ppath="*/iam/*">">
      Service fn="wl-proxy" WebLogicHost="hostname" WebLogicPort="portnumber" PathTrim="/weblogic"
      </Object>
      <Object name="weblogic1" ppath="*/console*">
      Service fn="wl-proxy" WebLogicHost="hostname" WebLogicPort="portnumber" PathTrim="/weblogic"
      </Object>
      

      where hostname is the server name and domain of the system where you installed WebLogic and portnumber is the WebLogic port (default is 7001).

      You may have more than one Object entry.

      For example:

      <Object name="idm" ppath="*/iam/*">">
      Service fn="wl-proxy" WebLogicHost="MyServer.MyCompany.com" WebLogicPort="7001" PathTrim="/weblogic"
      <Object name="weblogic1" ppath="*/console*">
      Service fn="wl-proxy" WebLogicHost="MyServer.MyCompany.com" WebLogicPort="7001" PathTrim="/weblogic"
      </Object>
      
  4. Save your iPlanet configuration file.
  5. Restart your Web Server instance.