[AIX Solaris HP-UX Linux Windows][IBM i]

Selecting a web server topology diagram and roadmap

Install and configure the Web Server Plug-ins to allow the application server to communicate with the web server.

Before you begin

The primary production configuration for a web server is an application server on one machine and a web server on a separate machine. This configuration is referred to as a remote configuration. Contrast the remote configuration to the local configuration, where the application server and the web server are on the same machine.
[AIX Solaris HP-UX Linux Windows]

About this task

The Web Server Plug-ins Configuration Tool has three main tasks:
  • Configures the web server configuration file on the web server machine to point to the binary plug-in module and to the XML configuration file for the binary module.
  • Installs a temporary XML configuration file for the binary module (plugin-cfg.xml) on the web server machine in remote scenarios.
  • Creates the configuration for a web server definition on the application server machine. The Web Server Plug-ins Configuration Tool processes the creation of the web server definition differently depending on the scenario:

Procedure

  • Set up a remote web server installation for a standalone node.

    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:
    Recommended separate machine installation
    [AIX Solaris HP-UX Linux Windows]Remote installation scenario
    Table 1. Installation and configuration. Remote installation scenario
    Step Machine Task
    1 A Install Installation Manager.
    2 A Use Installation Manager to install the WebSphere® Application Server product.
    3 A Create a standalone application server profile.
    4 B Install Installation Manager.
    5 B Use Installation Manager to install the following:
    • Web Server Plug-ins for WebSphere Application Server
    • [AIX Solaris HP-UX Linux Windows]WebSphere Customization Toolbox
    6 B Use Installation Manager to install IBM® HTTP Server, or install another supported web server.
    7 B Open the WebSphere Customization Toolbox, and launch the Web Server Plug-ins Configuration Tool to configure the web server plug-in.

    The script for creating and configuring the web server is created under the plugins_root/bin directory.

    8 B Copy the configureweb_server_name script to paste on Machine A.

    If one machine is running under an operating system such as AIX® or Linux® and the other machine is running under Windows, copy the script from the plugins_root/bin/crossPlatformScripts directory.

    9 A Paste the configureweb_server_name script from Machine B to the app_server_root/bin directory on Machine A.
    10 A Start the application server.
    11 A Run the script from a command line.
    12 A Verify that the application server is running. Open the administrative console and save the changed configuration.
    13 A Create a secure connection between the web server plug-in and the internal HTTP transport in the application server.
    Avoid trouble: This step is required for the web server to function properly.
    For detailed instructions on creating the secure connection, read the article on configuring the web server plug-in for Secure Sockets Layer.
    14 B Start the web server.
    15 B Run the Snoop servlet.
    Access the following URL in your browser:
    http://host_name_of_machine_B:http_transport_port/Snoop

    To verify with your own application, regenerate and propagate the plugin-cfg.xml file after installing the application.

    [IBM i]
    Table 2. Installation and configuration. Remote installation scenario
    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:
    app_server_root/bin/manageprofiles
      -create
      -profileName myHttpProfile
      -templatePath http

    The myHttpProfile variable is the name of the profile.

    5 B

    Configure the IBM HTTP Server with your http profile myHttpProfile.

    As a result, an IBM i qshell script called configureIHS_MyWebServer will be 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 according to the following procedure, then webServerName refers to DOMSRV01.

    The following steps apply to DOMINO web servers only:

    1. Run the configureOs400WebServerDefinition script on the http profile myHttpProfile. For example:
      configureOs400WebServerDefinition -profileName myHttpProfile
         -webserver.name DOMSRV01 -webserver.type DOMINO -webserver.port 80 
    2. Using the WRKDOMSVR command to update the notes.ini file of your Domino server, insert the following directive: WebSphereInit=myHttpProfile_profile_root/config/DOMSRV01/plugin-cfg.xml
    3. From the Lotus Notes client connected to the Domino server, click the internet protocols tab and then click the HTTP tab. Under DSAPI filter names add the following: /QSYS.LIB/ product_lib.LIB/LIBDOMINO.SRVPGM
    4. Save your changes
    6 A Copy the configurewebServerName script from Machine B to Machine A. The script is found in the myHttpProfile_profile_root/config/webServerName directory.
    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:
    app_server_root/bin/startServer
      -profileName myProfile
    
    cd profile_root/bin
    
    ./configurewebServerName [wasAdminUserId] [wasAdminPassword]
    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:
    1. Expand Servers > Server Types > Web servers
    2. Select your web server, in this case it is IHS_MyWebServer, then click Remote web server management
    3. Enter the user ID and password used to authenticate to Machine B. The authorities required by this profile are the same as that required to access the HTTP administration GUI. For details, see User profiles and required authorities for HTTP Server in the IBM i documentation.
    4. Save your configuration.
    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:
    1. Select webServerName and click Generate Plug-in to generate the plugin-cfg.xml file.
    2. Select webServerName and click Propagate Plug-in to propagate the plugin-cfg.xml file to Machine B.
    13 B If you use IBM HTTP Server on IBM i, start the web server. Open the administrative console (ISC) and do the following:
    1. Expand Servers > Server Types > Web servers.
    2. Select your web server, in this case it is IHS_MyWebServer, then click Start.
    If you use Domino HTTP Server on IBM i, start the web server from a CL command line:
    1. Run the Work with Domino Servers (WRKDOMSVR) command.
    2. Specify option 1 next to your Domino server.
    3. Press Enter.
    14 B Run the Snoop servlet. Access the following URL in your browser:
    http://host_name_of_machine_B:http_transport_port/Snoop

    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.

    [IBM i]However, if the service is disabled or if you want to force regeneration, use the administrative console or the GenPluginCfg script. In the administrative console, perform these steps:
    1. Expand Servers > Server Types > Web servers.
    2. Select the web server for which you want to regenerate the plugin-cfg.xml file.
    3. Click Generate Plugin.

    [AIX Solaris HP-UX Linux Windows]During configuration, the temporary plugin-cfg.xml file is installed on Machine B in the plugins_root/config/web_server_name directory. To use the actual plugin-cfg.xml file from the application server, propagate the plugin-cfg.xml file as described in the next section.

    Propagation of the plugin-cfg.xml file

    [IBM i]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.

    [AIX Solaris HP-UX Linux Windows]The web server plug-in configuration service propagates the plugin-cfg.xml file automatically for IBM HTTP Server Version 6.0 or later. For all other web servers, propagate the plug-in configuration file manually. Copy the plugin-cfg.xml file from the profile_root/ config/cells/cell_name/nodes/web_server_name_node/servers/web_server_name directory on Machine A. Paste the file into the plugins_root/config/web_server_name directory on Machine B.

  • Set up a local web server configuration[IBM i] for a standalone node.

    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:
    Local machine installation
    [AIX Solaris HP-UX Linux Windows]Local installation scenario
    Table 3. Installation and configuration. Local installation scenario
    Step Machine Task
    1 A Install Installation Manager.
    2 A Use Installation Manager to install the following:
    • WebSphere Application Server product
    • Web Server Plug-ins for WebSphere Application Server
    • WebSphere Customization Toolbox
    3 A Use Installation Manager to install IBM HTTP Server, or install another supported web server.
    4 A Create a standalone application server profile.
    5 A Open the WebSphere Customization Toolbox, and launch the Web Server Plug-ins Configuration Tool to configure the web server plug-in and create the web server definition.

    The web server definition is automatically created and configured during the configuration of the plug-in.

    6 A Start the application server.
    7 A Verify that the application server is running. Open the administrative console and save the changed configuration.
    8 A Create a secure connection between the web server plug-in and the internal HTTP transport in the application server.
    Avoid trouble: This step is required for the web server to function properly.
    For detailed instructions on creating the secure connection, read the article on configuring the web server plug-in for Secure Sockets Layer.
    9 A Start the web server.
    10 A Run the Snoop servlet.
    Access the following URL in your browser:
    http://host_name_of_machine_A:http_transport_port/Snoop

    To verify with your own application, regenerate and propagate the plugin-cfg.xml file after installing the application.

    [IBM i]
    Table 4. Installation and configuration. Local installation scenario
    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.
    1. Run the configureOs400WebServerDefinition script on the application server profile. For example:
      configureOs400WebServerDefinition -profileName myAppServerProfile 
         -webserver.name DOMSRV01 -webserver.type DOMINO -webserver.port 80
    2. Configure a virtual host alias for the web server machine and web server port of DOMSRV01.
    3. Using the WRKDOMSVR command to update the notes.ini file of your Domino server, insert the following directive:
      WebSphereInit=profile_root/config/cells/cell_name/nodes/node_name/
         servers/DOMSRV01/plugin-cfg.xml 
    4. From the Lotus Notes client connected to the Domino server, click the Internet protocols tab, then click the HTTP tab. Under DSAPI filter names add the following: /QSYS.LIB/ product_lib.LIB/LIBDOMINO.SRVPGM
    5. Save your changes
    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:
    1. Expand Servers > Server Types > Web servers.
    2. Select your web server, in this case it is IHS_MyWebServer, then click Remote web server management.
    3. Enter the user ID and password used to authenticate to Machine A. The authorities required by this profile are the same as that required to access the HTTP administration GUI. For details, see User profiles and required authorities for HTTP Server in the IBM i documentation.
    4. Save your changes.
    7 A In the administrative console (ISC) do the following:
    1. Expand Servers > Server Types > Web servers.
    2. If you use IBM HTTP Server on IBM i, Select IHS_MyWebServer and click Generate Plug-in to generate the plugin-cfg.xml file.
    3. If you use Domino HTTP Server on IBM i, Select DOMSRV01 and click Generate Plug-in to generate the plugin-cfg.xml file.
    8 A If you use IBM HTTP Server on IBM i, start the web server. Open the administrative console (ISC) and do the following:
    1. Expand Servers > Server Types > Web servers.
    2. Select your web server, in this case it is IHS_MyWebServer, then click Start.
    If you use Domino HTTP Server on IBM i, start the web server from a CL command line:
    1. Run the Work with Domino Servers (WRKDOMSVR) command.
    2. Specify option 1 next to your Domino server.
    3. Press Enter.
    9 A Run the Snoop servlet. Access the following URL in your browser:
    http://host_name_of_machine_A:http_transport_port/Snoop

    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.

    [IBM i]However, if the service is disabled or you want to force regeneration, use the administrative console or the GenPluginCfg script. In the administrative console, perform these steps:
    1. Expand Servers > Server Types > Web servers.
    2. Select the web server for which you want to regenerate the plugin-cfg.xml file.
    3. Click Generate Plug-in.

    [AIX Solaris HP-UX Linux Windows]The plugin-cfg.xml file is generated in the profile_root/config/cells/cell_name/nodes/web_server_name_node/servers/web_server_name directory. The generation occurs when the web server definition is created.

    Propagation of the plugin-cfg.xml file

    The local file does not require propagation.

What to do next

Tip: If you use a nonstandard web server port (that is, a port other than the default port of 80) you must also perform the following procedure:
  1. Using the administrative console, add the nonstandard port to any required virtual host in WebSphere Application Server, including the default_host if applications are mapped to it.
  2. Regenerate the plug-in.
  3. Propagate the plug-in.
  4. Restart the application server.
  5. Restart the web server.