上一主题: (WL) 配置 IIS 6.0 代理插件下一主题: 配置 Apache 代理插件


配置 iPlanet 代理插件

要配置此插件,请修改下列 iPlanet 配置文件:

iPlanet 配置文件对文本位置有严格规则。 要避免这些问题,请注意以下几点:

可在下列位置找到 iPlanet 实例的 iPlanet 配置文件:

iplanet_home/https-instance_name/config/

其中,iplanet_home 是 iPlanet 安装的根目录,而 instance_name 则是特定服务器的配置。

遵循这些步骤:

  1. weblogic_home/server/lib 目录中,将与您的 iPlanet Web 服务器版本对应的 libproxy.so 文件复制到安装了 iPlanet 的文件系统。
  2. 在文本编辑器中,修改 iPlanet magnus.conf 文件。

    若要让 iPlanet 将 libproxy.so 文件作为 iPlanet 模块加载,请将下列行添加到 magnus.conf 文件的开头:

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

    例如:

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

    函数 load-modules 将共享库标记为在 iPlanet 启动时加载。 值 wl_proxy 和 wl_init 指定插件所要执行的函数。

  3. 在文本编辑器中,按照如下方法修改 iPlanet obj.conf 文件:
    1. 在以下列文本开始的最后一行后:

      NameTrans fn=....

      将下列 Service 指令添加到“Object name="default"”部分:

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

      注意:您可以在现有的 Service 指令的下一行中添加此指令。

    2. 将以下代码添加到文件末端:
      <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>
      

      其中,hostname 是安装了 WebLogic 的系统的服务器名和域,portnumber 则是 WebLogic 端口(默认为 7001)。

      您可能拥有多个对象条目。

      例如:

      <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. 保存 iPlanet 配置文件。
  5. 重新启动 Web 服务器实例。