How to configure a second web server instance?

For security reasons we want to run two web server instances (iPlanet Enterprise 4.1) in combination with iAS 6.0 SP2. Both the web server instances and iAS are on the same server.

The first web server instance works with iAS (managed with initial installation). How can we configure a second web server. Just copying the obj.conf of the first web server isn't working. We get the following error:

conf_init: Error running init function load modules: dlopen of libgxnsapi6.so: open failed: No such file or directory.

Even when specifying the full path to this file in the obj.conf doesn't work.

What are the right steps?

Thanks in advance.

Kind regards,

Richard

[720 byte] By [709163] at [2007-11-25 4:51:29]
# 1

Richard,

It is best to install a web connector plugin for each of the web servers you have. The reason for this is that each web connector that gets installed needs a location for configuration information. In the first installation you did (assuming you installed the webconnector at the same time as the application server) has the configuration lumped in with the application server configuration. If you simply try to configure more web servers using the same shared libraries from the same directory, all of the web servers must use the same configuration for the web plugins (i.e. point to the same application server, have the same proxy keyword - NASApp, etc.) This will cause a problem if you ever decide to point one of the web connectors at a different application server (makes it impossible without pointing all of them to the new application server).

The reason for this is in the startup process of the web server/web connector. On web server startup the web server reads the obj.conf file and loads all of the plugins defined in it, we will only be concearned with the web connector. Once the web connector is loaded it gets initialzed. This is the interesting part. The web connector initialization reads the local configuration that is installed under the webconnector (or in your case the original appliction server installation) from the $GXROOT/ias/registry/reg.dat file. This tells the web connector which ldap server it needs to connect and what keys in ldap it needs to read and some other information. You can see some of the configuation information for the web connector in your original installation by starting kregedit and navigating to the "Software\iPlanet\Application Server\6.0\CCS0\HTTPAPI" key. Here you will find configuration information such as the IP address and port number of the application server to connect to as well as other information.

If there will be the slightest chance that any of the configuration for the a web connector will be different you must install a new web connector for each web server. You must perform a custom application server installation, only select the web connector option and select a different directory for each webconnector installation. Under each web connector installation you will then have individual $GXROOT/ias/registry/reg.dat files where a majority of the connector configuration is stored.

Each web connector installation can make use of the same directory server as your application server, so that when the webconnectors startup they can read in information about the application componets you have registered in your application server.

As always if you need more information shoot me an email.

Hope that helps,

Chris Buzzetta, <A href="mailto:cbuzzetta@talentstorm.com">cbuzzetta@talentstorm.com</A>

TalentStorm Enterprise, Inc.

(an ICSynergy, LLC. Strategic Partner <A href="http://www.icsynergy.com">www.icsynergy.com</A>)

Chris Buzzetta at 2007-6-29 8:59:44 > top of Java-index,Application & Integration Servers,Application Servers...
# 2

Hi Richard,

Here is some instracion for Manually Configuring a Web Server, and let me

know if does help you.

To reconfigure an iPlanet Web Server, perform the following steps:

1.Enable CGI, if it is not already enabled:

a.On Windows, from the Start menu, select iPlanet Web Server>

Administer Web Servers.

b.Enter the administrator ID and password, and click OK.

c.On the iPlanet Server Selector screen, choose the web server

instance you want to configure from the

drop-down list and click Manage.

d.Click Programs, from the menu toolbar.

e.On the CGI directory screen under URL prefix, type cgi-bin.

f.Under CGI directory, enter the cgi-bin path.

For iPlanet Web Server 4.1, Windows:

drive letter:\Netscape\Server4\docs\cgi-bin

For iPlanet Web Server 4.1, Solaris:

<iASInstallDir>/docs/cgi-bin

Now you are ready to configure the Web Connector Plug-in.

2.Edit the obj.conf file in the web server configuration directory.

For iPlanet Web Server 4.1, Windows:

drive letter:\Netscape\Server4\https-machinename\config

For iPlanet Web Server 4.1, Solaris:

iASInstallDir/https-machinename/config

Make a copy of the file before modifying it. At the end of the

Init section of the obj.conf file, add the following as

two lines:

Windows:

Init fn="load-modules"

funcs=nas_name_trans,gxrequest,gxlog,gxinit,gxredirect,

gxhtmlrequest shlib="path to iAS bin dir/example:

gxnsapi6.dll"

Init fn="gxinit"

Solaris:

Init fn="load-modules"

funcs=nas_name_trans,gxrequest,gxlog,gxinit,gxredirect,

gxhtmlrequest shlib="libgxnsapi6.so"

Init fn="gxinit"

Specify the following for shlib, iPlanet Enterprise Web Server

4.1:

Windows:

<iASInstallDir>\bin\gxnsapi351l

Solaris:

<iASInstallDir>/gxlib/libgxnsapi30.so

3.In the Object name=default section, just after type=text/plain

section, add the following line:

Service fn="gxredirect" fnname="imagemap" method="(GET|HEAD)"

4.In the Object name=cgi section(s), insert the following line

immediately before the line Service fn="send-cgi":

Service fn="gxrequest"

And then insert the following line immediately after the line

Service fn="send-cgi":

AddLog fn="gxlog"

5.Make a copy of the current version of the file obj.conf and copy

it to the back up version (so that the backup is

consistent with the current version) in the following directory:

For Windows:

drive letter:\iPlanet\SuiteSpot\https-machinename\conf_bk

For Solaris:

iPlanet install directory/https-machinename/conf_bk

6.Solaris only: Modify the web server's start and stop scripts as

follows:

In the start script:

Set GX_ROOTDIR to the directory in which iPlanet Application

Server is installed. For example:

GX_ROOTDIR=iASInstallDir; export GX_ROOTDIR

7.Restart the web server.

Methane Rahman

Richard Smit wrote:

> For security reasons we want to run two web server instances (iPlanet

> Enterprise 4.1) in combination with iAS 6.0 SP2. Both the web server

> instances and iAS are on the same server.

> The first web server instance works with iAS (managed with initial

> installation). How can we configure a second web server. Just copying

> the obj.conf of the first web server isn't working. We get the

> following error:

> conf_init: Error running init function load modules: dlopen of

> libgxnsapi6.so: open failed: No such file or directory.

> Even when specifying the full path to this file in the obj.conf

> doesn't work.

>

> What are the right steps?

>

> Thanks in advance.

>

> Kind regards,

>

> Richard

>

> Try our New Web Based Forum at http://softwareforum.sun.com

> Includes Access to our Product Knowledge Base!

709134 at 2007-6-29 8:59:44 > top of Java-index,Application & Integration Servers,Application Servers...
# 3

You also need to edit the start script to include the library path.

regards

Han-Dat

Richard Smit wrote:

>

> For security reasons we want to run two web server instances (iPlanet

> Enterprise 4.1) in combination with iAS 6.0 SP2. Both the web server

> instances and iAS are on the same server.

> The first web server instance works with iAS (managed with initial

> installation). How can we configure a second web server. Just copying

> the obj.conf of the first web server isn't working. We get the

> following error:

> conf_init: Error running init function load modules: dlopen of

> libgxnsapi6.so: open failed: No such file or directory.

> Even when specifying the full path to this file in the obj.conf

> doesn't work.

>

> What are the right steps?

>

> Thanks in advance.

>

> Kind regards,

>

> Richard

>

> Try our New Web Based Forum at http://softwareforum.sun.com

> Includes Access to our Product Knowledge Base!

--

Han-Dat Luc (hdl@sun.com)

Senior Consultant

SUN Professional Services (iPlanet)

__

o .

o.

O _ _ __

(_) _ \| | __ _ _ __| |_ TM

| | |_) | |/ _` | '_ \ / _ \ __|

| | __/| | (_| | | | | __/ |_

|_|_||_|\__,_|_| |_|\|\__|

e-commerce solutions

Sun Microsystems Australia Pty Ltd

Guest at 2007-6-30 21:46:40 > top of Java-index,Application & Integration Servers,Application Servers...
# 4

Hi,

I have tested this and found that, even if you have two or more

instances running in a single web server, you must install the webserver

plugin for each instance. Which means, if you have 3 instances, then, for

each instance you have to install the web server plugin once. Please let

me know if this helps you.

Regards

Raj

Richard Smit wrote:

> For security reasons we want to run two web server instances (iPlanet

> Enterprise 4.1) in combination with iAS 6.0 SP2. Both the web server

> instances and iAS are on the same server.

> The first web server instance works with iAS (managed with initial

> installation). How can we configure a second web server. Just copying

> the obj.conf of the first web server isn't working. We get the

> following error:

> conf_init: Error running init function load modules: dlopen of

> libgxnsapi6.so: open failed: No such file or directory.

> Even when specifying the full path to this file in the obj.conf

> doesn't work.

>

> What are the right steps?

>

> Thanks in advance.

>

> Kind regards,

>

> Richard

>

> Try our New Web Based Forum at http://softwareforum.sun.com

> Includes Access to our Product Knowledge Base!

709134 at 2007-6-30 21:46:40 > top of Java-index,Application & Integration Servers,Application Servers...