Install and configure the Web Server Plug-ins to allow the application server to communicate with the web server.
The remote web server configuration is recommended for production environments.
The remote installation installs the web server plug-in on the web server machine when the application server is on a separate machine, such as shown in the following graphic:
Step | Machine | Task |
---|---|---|
1 | A | Install your WebSphere® Application Server product. |
2 | A | Create an application server profile. |
3 | B | If you plan to run IBM® HTTP
Server on IBM i, it
is already installed as product 5761-DG1 or 5770-DG1. You can also
use a Domino® Web Server on IBM i. Refer to the Domino documentation for installation
instructions. For either scenario, you must install the Web Server Plug-ins component of the WebSphere Application Server product. |
4 | B | Run the manageprofiles Qshell command
to create an http profile. For example, run this command
from Qshell:
The myHttpProfile variable is the name of the profile. |
5 | B | Configure the IBM HTTP Server with your http profile myHttpProfile. If your web server's name is MyWebServer., an IBM i qshell script called configureIHS_MyWebServer is created in the myHttpProfile_profile_root/config/IHS_myWebServer directory on Machine B. For the default WebSphere Application Server install, themyHttpProfile_profile_root of the profile myHttpProfile is /QIBM/UserData/WebSphere/AppServer/V61/Base/profiles/myHttpProfile. Note: In
the remainder of this example, webServerName refers to IHS_myWebServer.
If you choose to configure a DOMINO web server as listed below, then
webServerName refers to DOMSRV01.
The following steps apply to DOMINO web servers only:
|
6 | A | Copy the configurewebServerName script from Machine B to Machine A. The script is found in the myHttpProfile_profile_root/config/webServerName directory described above |
7 | A | Place the file you copied from the previous step into the profile_root/bin directory on Machine A, where profile_root is the directory where your application server profile is located. |
8 | A | Start the application server and then run the
script that you copied in the previous step. For example,
run these commands from Qshell:
Note: wasAdminUserId and wasAdminPassword are
optional and only needed when the application server of myProfile is
running in secure mode.
|
9 | A | If you use IBM HTTP
Server on IBM i, verify
that the application server is running. Open the administrative console
(ISC) and do the following:
|
10 | A | Configure a virtual host alias for the web server machine (B) and web server port of MyWebServer. |
11 | A | Stop and restart your application server. |
12 | A | In the administrative console (ISC) do the following:
|
13 | B | If you use IBM HTTP
Server on IBM i, start
the web server. Open the administrative console (ISC) and do the following:
|
14 | B | Run the Snoop servlet. Access the following
URL in your browser:
If you get an error, retrace your steps. Add a virtual host to Machine A before restarting the application server on Machine A. |
Regeneration of the plugin-cfg.xml file
The web server plug-in configuration service regenerates the plugin-cfg.xml file automatically.
Propagation of the plugin-cfg.xml file
The plugin-cfg.xml file can
be propagated manually. Manual propagation of the plugin-cfg.xml file
is required for DOMINO web servers. Copy the plugin-cfg.xml file
from the application server machine to the myHttpProfile_profile_root/config/IHS_MyWebServer directory
on the web server Machine B. The plugin-cfg.xml file
is generated in the directory named profile_root/config/cells/cell_name/nodes/host_name_of_machine_B-node/servers/IHS_myWebServer on
the application server Machine A.
The local web server configuration is recommended for a development or test environment.
A local installation includes the web server plug-in, the web server, and the Application Server on the same machine:
Step | Machine | Task |
---|---|---|
1 | A | Install your WebSphere Application Server product. |
2 | A | Create an application server profile. |
3 | A | IBM HTTP Server on IBM i is already installed as product 5761-DG1 or 5770-DG1. Alternatively, you can also run Domino Web Server on IBM i. Refer to the Domino documentation for installation instructions. |
4 | A | Configure the IBM HTTP
Server with your WebSphere Application
Server profile. The following steps apply to DOMINO web servers
only. For these steps, assume your web server's name is MyWebServer.
|
5 | A | Stop and restart the application server. |
6 | A | If you use IBM HTTP
Server on IBM i, open
the administrative console (ISC) do the following:
|
7 | A | In the administrative console (ISC) do the following:
|
8 | A | If you use IBM HTTP
Server on IBM i, start
the web server. Open the administrative console (ISC) and do the following:
|
9 | A | Run the Snoop servlet. Access the following
URL in your browser:
If you get an error, retrace your steps. Add a virtual host to Machine A before restarting the application server on Machine A. |
Regeneration of the plugin-cfg.xml file
The web server plug-in configuration service regenerates the plugin-cfg.xml file automatically.
Propagation of the plugin-cfg.xml file
The local file does not require propagation.
The remote web server configuration is recommended for production environments.
The remote distributed installation installs the web server plug-in on the web server machine when the application server is on a separate machine, such as shown in the following graphic:
Step | Machine | Task |
---|---|---|
1 | A | Install WebSphere Application Server Network Deployment. |
2 | A | Create a deployment manager profile or use the one created during installation. |
3 | A | Start the deployment manager. From Qshell, run
this command:
|
4 | B | Install WebSphere Application Server Network Deployment. |
5 | B | Create an application server profile or use the one created during installation. |
6 | B | Federate the node. From Qshell, run this command:
Variable descriptions:
Map the application modules to servers after this step. |
7 | C | IBM HTTP
Server on IBM i is
already installed as product 5761-DG1 or 5770-DG1. Alternatively,
you can also run Domino Web
Server on IBM i. Refer
to the Domino documentation
for installation instructions. For either scenario, you must install the Web Server Plug-ins component of the WebSphere Application Server product. |
8 | C | Run the manageprofiles Qshell command
to create an http profile. The myHttpProfile variable is the name of the profile. |
9 | C | Configure the IBM HTTP
Server with your http profile myHttpProfile. Assuming your Web server's name is MyWebServer. an IBM i qshell script called configureIHS_MyWebServer will be created in the myHttpProfile_profile_root/config/IHS_MyWebServer directory on Machine C. For the default WebSphere Application Server install, the myHttpProfile_profile_root of the profile myHttpProfile is /QIBM/UserData/WebSphere/AppServer/V61/Base/profiles/myHttpProfile. Note: In
the remainder of this example, webServerName refers to IHS_myWebServer.
If you choose to configure a DOMINO web server as listed below, then
webServerName refers to DOMSRV01.
The following steps apply to DOMINO web servers only:
|
10 | C | Copy the configurewebserverName script to Machine A. The script is found in the myHttpProfile_profile_root/config/webServerName directory described above. |
11 | A | Place the file you copied from the previous step into the profile_root/bin directory on Machine A, where profile_root is the directory where your deployment manager profile is located. |
12 | A/B | Start the node agent and the deployment manager
if they are not already running, then run the script that you copied
in the previous step. For example, run these commands from Qshell: Machine
A:
Note: wasAdminUserId and wasAdminPassword are
optional and only needed when the deployment manager of name_of_dmgr_profile is
running in secure mode.
Machine B:
|
13 | A | Use the administrative console of the deployment manager on Machine A to start the application server on Machine B. Wait for synchronization to occur and save the new configuration. |
14 | A | If you use IBM HTTP
Server on IBM i, verify
that the deployment manager is running. Open the administrative console
(ISC) and do the following:
|
15 | A | Configure a virtual host alias for the web server machine (C) and web server port of MyWebServer. |
16 | A | In the administrative console (ISC) do the following:
|
17 | A | Stop and restart the federated application server. |
18 | A/C | If you use IBM HTTP
Server on IBM i, start
the web server. Open the administrative console (ISC) on Machine A
and do the following:
If you use Domino HTTP
Server on IBM i, start
the web server, on Machine C, from a CL command line:
|
19 | C | Run the Snoop servlet. Access the following
URL in your browser:
If you get an error, retrace your steps. |
Regeneration of the plugin-cfg.xml file
The web server plug-in configuration service regenerates the plugin-cfg.xml file automatically.
Propagation of the plugin-cfg.xml file
The plugin-cfg.xml file
can be propagated manually. Manual propagation of the plugin-cfg.xml file
is required for DOMINO web servers. Copy the plugin-cfg.xml file
from the application server machine to the myHttpProfile_profile_root/config/IHS_MyWebServer directory
on the web server Machine C. The plugin-cfg.xml file is generated
in the directory named profile_root/config/cells/cell_name/nodes/node_name/servers/IHS_myWebServer on
the application server Machine B.
The local web server configuration is recommended for a development or test environment.
A local distributed installation includes the web server plug-in, the Web server, and the managed application server on the same machine:
Local distributed installation scenario
Step | Machine | Task |
---|---|---|
1 | A | Install WebSphere Application Server Network Deployment. |
2 | A | Create a deployment manager profile or use the one created during installation. |
3 | A | Start the deployment manager. From Qshell, run
this command:
Alternatively,
issue the following commands:
|
4 | B | Install WebSphere Application Server Network Deployment. |
5 | B | Create an application server profile or use the one created during the installation. Assume the profile name is appProfile. |
6 | B | Federate the node. From Qshell, run the following
commands:
Variable descriptions:
Map the application modules to servers after this step. |
7 | B | IBM HTTP Server on IBM i is already installed as product 5761-DG1 or 5770-DG1. Alternatively, you can also run Domino Web Server on IBM i. Refer to the Domino documentation for installation instructions. |
8 | B | Configure the IBM HTTP
Server with your application server profile appProfile. Note: In the
remainder of this example, webServerName refers to IHS_MyWebServer.
If you choose to configure a DOMINO web server as listed below, then
webServerName refers to DOMSRV01.
Also in this example, assume your web server's name is MyWebServer. |
9 | A/B | (Domino only) The
following steps apply to the DOMINO web server on Machine B:
|
10 | A | Use the administrative console of the deployment manager on Machine A to start the application server on Machine B. |
11 | A | If you use IBM HTTP
Server on IBM i, update
the user ID and password of your web server configuration. This step
enables your deployment manager to perform remote operations on the
web server:
|
12 | A | In the administrative console (ISC), configure a virtual host alias for the web server machine (B) and web server port of MyWebServer. |
13 | A | In the administrative console (ISC) do the following:
|
14 | A | In the administrative console (ISC), stop and restart the federated application server. |
15 | A/B | If you use IBM HTTP
Server on IBM i, start
the web server. Open the administrative console (ISC) on Machine A
and do the following:
If you use Domino HTTP
Server on IBM i, start
the web server, on Machine B, from a CL command line:
|
16 | B | Run the Snoop servlet. Access the following
URL in your browser:
If you get an error, retrace your steps. |
Regeneration of the plugin-cfg.xml file
The web server plug-in configuration service regenerates the plugin-cfg.xml file automatically.
The plugin-cfg.xml file is generated at the location profile_root/config/cells/cell_name/nodes/node_name/servers/webServerName directory, when the web server definition is created.
Regenerate the plugin-cfg.xml file in the web server definition in the application server whenever the configuration changes. The web server has immediate access to the file whenever it is regenerated.
Propagation of the plugin-cfg.xml file
Node synchronization is used to propagate the plugin-cfg.xml file from Machine A to Machine B.
See Installing and configuring web server plug-ins for information about
other installation scenarios for installing Web Server Plug-ins.