+

Search Tips   |   Advanced Search

Configure multiple web servers and remote standalone application servers

We can install and configure multiple web servers and application servers on separate machines.

When multiple profiles exist, we can select the profile that the Web Server Plug-ins Configuration Tool configures. See Plug-ins configuration for a description of the flow of logic that determines how to select the profile to configure.

If the WebSphere Application Server product family supports a particular brand of web server, such as IBM HTTP Server or Microsoft Internet Information Services (IIS), our WAS product provides a binary plug-in for the web server that install.

If the WAS product family does not provide a binary plug-in for a particular brand of web server, then the web server is not supported. The purpose of the binary plug-in is to provide the communication protocol between the web server and the application server.

(Dist) Suppose that we create a new profile and we also want to use a web server. We must install a new web server for the new profile, install the Web Server Plug-ins, and use the Web Server Plug-ins Configuration Tool to configure both the web server and the application server.

If the web server is not already installed, we can still install the Web Server Plug-ins for future use.

(Dist) Installing the Web Server Plug-ins installs the plug-in module. The Web Server Plug-ins Configuration Tool (PCT) configures the web server for communicating with the application server and creates a web server configuration definition in the application server, if possible. Some topologies, such as the web server on one system and the application server on another system, prevent the Web Server Plug-ins Configuration Tool from creating the web server definition in the application server configuration directly on the remote system. In such a case, the tool creates a script that we can copy to the application server system. Run the script to create the web server configuration definition within the application server configuration.

This article describes how to create the following topology:

Perform the following procedure to install the plug-ins and configure both web servers and both application servers.

This topology lets each profile have unique applications, configuration settings, data, and log files, while sharing the same set of system files. Creating multiple profiles creates multiple application server environments that we can then dedicate to different purposes.

For example, each application server on a website can serve a different application. In another example, each application server can be a separate test environment that we assign to a programmer or a development team.

This tool is supported only on AIX, Linux, and Windows. As an alternative to using the Web Server Plug-ins Configuration Tool, we can use the pct command-line tool with a response file to configure a web server. Read Configure a web server plug-in using the pct tool for more information.


Tasks

  1. Install Installation Manager on Machine A and Machine B.

  2. Use Installation Manager to install WAS Network Deployment on Machine A.

  3. Create the first application server profile using the Profile Management Tool on Machine A.

  4. (iSeries) Use the managedProfile command to create the first application server profile on Machine A.

  5. Use Installation Manager to install the following on Machine B.

  6. Use Installation Manager to install the IBM HTTP Server on Machine B, or install another supported web server on Machine B.

  7. Open the WebSphere Customization Toolbox, and launch the Web Server Plug-ins Configuration Tool on the machine with the web server.

  8. Select a web server plug-in runtime location.

    If the location of a previously installed web server to use is not in the list, perform the following actions to add the location to your working set:

    1. Click Add.

    2. Enter a name for the web server plug-in location.

    3. Perform one of the following actions:

      • Enter the location.

      • Click Browse, find the location, and click OK.

  9. Click Create.

  10. Select the type of web server that we are configuring, and click Next.

  11. Select the architecture of our installed target web server (64 bit or 32 bit) and click Next if we are asked.

  12. Click Browse to select the configuration file or files for our web server, verify that the web server port is correct. Click Next when finished.

    Select the file and not just the directory of the file. Some web servers have two configuration files and require you to browse for each file.

    The following list shows configuration files for supported web servers:

      Apache Web Server

      apache_root/config/httpd.conf

      Domino Web Server

      names.nsf and Notes.jar

      The wizard prompts for the notes.jar file. The actual name is Notes.jar.

      The Web Server Plug-ins Configuration Tool verifies that the files exist but the tool does not validate either file.

      IBM HTTP Server

      (Dist) IHS_root/conf/httpd.conf

      (iSeries) IHS_profile_root/conf/httpd.conf

      Microsoft Internet Information Services (IIS)

      The Web Server Plug-ins Configuration Tool can determine the correct files to edit.

      Oracle iPlanet Web Server

      obj.conf and magnus.conf

  13. If we are configuring an IBM HTTP web server plug-in, perform the following actions.

    1. Optionally, set up the administration server configuration to administer the web server.

      When using the Web Server Plug-ins Configuration Tool to configure the IBM HTTP Server Administration server, the WebSphere Customization Toolbox must be run as a "local" account with administrator/root privileges.

      1. Select...

          Setup IBM HTTP Server Administration Server

      2. Specify a port number on which the IBM HTTP administration server will communicate.

      3. Optionally, select...

          Create a user ID for IBM Server Administration Server authentication

        ...and enter a user ID and password to authenticate to the IBM HTTP Server administrative server from the administrative console.

    2. Click Next.

    3. (AIX) (Linux) Specify the system user ID and group to have write permission to IBM HTTP Server, the IBM HTTP Server administrative server, and the web server plug-in configuration files.

      If necessary, select...

        Create a new unique system user ID and group using the credentials

      (AIX) Restriction: The configuration might fail if we specify a new user ID or group name that exceeds the platform limit, which is commonly 8 characters and is sometimes configurable.

    4. (Windows) Optionally, set up the IBM HTTP Server Administration Server to run as a Window service.

      1. Select...

          Run IBM HTTP Server Administration Server as a Windows Service

      2. Perform one of the following actions:

        • Select...

            Log on as a local system account

        • Select...

            Log on as a specified user account

          ...and enter the user ID and password for that account.

          The user ID requires the following advanced user rights:

          • Act as part of the operating system
          • Log on as a service

      3. Choose whether your startup type will be automatic or manual.

    5. Click Next.

  14. Specify a unique name for the web server definition, and click Next.

  15. Select the configuration scenario.

    1. Choose the remote scenario.
    2. Identify the host name or IP address of Machine A, which is the application server machine.

    3. Click Next.

  16. Select the profile to configure with the current web server plug-in, and click Next.

  17. Examine the summary panel, and click Configure to begin configuring.

    The panel notifies you that we have manual steps to perform to complete the installation and configuration.

    The Web Server Plug-ins Configuration Tool creates the configureweb_server script in the plugins_root/bin/ directory on Machine B (the machine with the web server).

    The Web Server Plug-ins Configuration Tool also creates the plugin-cfg.xml file in the plugins_root/config/web_server directory.

    The web server reads the plugin-cfg.xml file to determine the applications that the application server on Machine A can serve to the web server on Machine B. Whenever the configuration changes, the application server regenerates the file. When regeneration occurs, propagate, or copy the actual plugin-cfg.xml file from the application server machine to the web server machine. We can automatically propagate the file to the IBM HTTP Server product.

  18. Verify the success of the installation on the summary panel, and click Finish.

    If a problem occurs and the installation is unsuccessful, examine the logs in the plugins_root/logs directory. Correct any problems and re-configure.

  19. Copy the configureweb_server script from Machine B (the machine with the web server) to the app_server_root /bin directory on Machine A (the application server machine).

    web_server is the nickname of the web server specified. web_server is not a vendor name, such as IIS or Apache.

    (Dist) On an operating system such as AIX or Linux, the file is configureweb_server.sh. On a Windows system, the file is configureweb_server.bat. For example, on a Linux system with an IBM HTTP Server named web_server_1 in the default location, copy...

      plugins_root/bin/configureweb_server_1.sh

    ...from machine B (the machine with the web server) to...

      < app_server_root/bin

    ...on Machine A (the application server machine).

    (iSeries) For example, on an IBM i system with an IBM HTTP Server named web_server_1 in the default location, copy plugins_root/bin/configureweb_server_1 from Machine B (the machine with the web server) to app_server_root/bin on Machine A (the application server machine).

    (Dist) If one platform is a system such as AIX or Linux and the other is a Windows platform, copy the script from the crossPlatformScripts directory. For example:

    • (UNIX) plugins_root/bin/configureweb_server.sh
    • (Windows) plugins_root/bin/crossPlatformScripts/windows/configureweb_server.bat
    • (iSeries) plugins_root/bin/configureweb_server

  20. Compensate for file encoding differences to prevent script failure.

    The content of the configureweb_server.bat script or the configureweb_server.sh script can be corrupt if the default file encoding of the two machines differs. This scenario is possible when one machine is set up for a double-byte character set (DBCS) locale and the other machine is not.

    (iSeries) The content of the configureweb_server script can be corrupt if the default file encoding of the two machines differs. This scenario is possible when one machine is set up for a double-byte character set (DBCS) locale and the other machine is not.

    Determine the file encoding and use one of the following procedures to circumvent the failure. To determine the default file encoding, run the appropriate command.

    (Dist)

    • Run the locale charmap command on a system such as AIX or Linux.

    • Run the CHCP command on a Windows machine.

    Use the result of the command on each machine as the value for the web_server_machine_encoding variable and the application_server_machine_encoding variable in one of the following procedures.

    Procedures for compensating for encoding differences

    • Web server running on a system such as AIX or Linux

      Suppose that the web server is running on a Linux machine and the application server is running on a Windows machine. Before you FTP the web server definition configuration script to the Windows machine in binary mode, on the system to encode the file:

        iconv -f web_server_machine_encoding \
              -t application_server_machine_encoding \
              configureweb_server.bat 
        

      Important: The name of the web server (nick name) is used in the name of the script file. The name cannot contain characters from a double-byte character set (DBCS) if we intend to set up IBM HTTP Server for automatic propagation.

    • Web server running on a Windows system

      Suppose that the web server is running on a Windows machine and the application server is running on a machine with a system such as AIX or Linux. We must first download the iconv utility from a third party because the command is not included by default on Windows systems. Before you FTP the web server definition configuration script in binary mode to a system such as AIX or Linux, on the machine to encode the file:

        iconv -f web_server_machine_encoding \
              -t application_server_machine_encoding \
              configureweb_server.sh 
        
      For example, if the target machine is z/OS, we might use this command to convert the file from ASCII to EBCDIC, handling the end-of-line characters correctly:

        iconv -f ISO8859-1 -t IBM-1047 configureweb_server.sh > new_script_name.sh

    Omit the continuation characters (\) if we enter the command on one line.

    If the conversion mapping is not supported by the iconv command on the system, copy the contents of the web server configuration script to a clip board and paste it onto the machine where the application server is running.

    If we copy over a .sh file onto a UNIX-based operating system after remote configuration on a Windows operating system, we must perform chmod 755.

  21. Start the application server on Machine A.

    Use the startServer command, for example:

    • (UNIX) profile_root/bin/startServer.sh server1
    • (Windows) profile_root\bin\startServer server1
    • (iSeries) profile_root/bin/startServer server1

  22. Start the IBM HTTP Server Administration server.

    The administration server must be started so that the configureweb_server.bat/.sh script can generate and propagate the plugin-cfg.xml file.

    If we do not start the administration server, the script can configure the web server, but the plug-in is not propagated, and PLGC0063E, PLGC0049E, and PLGC0053E errors occur.

  23. Open a command window and change to the profile directory where the web server should be assigned. Run the script that you copied to Machine A (the application server machine). We need the following parameters:

    • Profile Name
    • (Optional) Admin user ID
    • (Optional) Admin user password

    For example, we could enter the following:

      configurewebserver1.sh AppSrv01 my_user_ID my_Password

    The web server will be configured via wsadmin.

    The contents of the configurewebserver1.sh script will be similar to this:

    wsadmin.bat -profileName AppSrv01 
                -user my_user_ID -password my_Password
                -f "%WAS_HOME%\bin\configureWebserverDefinition.jacl" webserver1 IHS..
    

  24. From the administrative console of the deployment manager, click...

            System administration > Save Changes to Master Repository > Synchronize changes with Nodes > Save.

  25. Domino Web Server only: Set the WAS_PLUGIN_CONFIG_FILE environment variable.

    On platforms such as AIX or Linux, sourcing a script to the parent shell allows child processes to inherit the exported variables. On Windows systems, run the script as we would run any other command. Sourcing is automatic on Windows systems.

    1. Open a command window.

    2. Change directories to the plug-ins installation root directory.

    3. Issue the appropriate command for the plugins_root/bin/setupPluginCfg.sh script:

      • (AIX) (HPUX) (Solaris) . plugins_root/bin/setupPluginCfg.sh

        Note the space between the period and the installation root directory.

      • (Linux) source plugins_root/bin/setupPluginCfg.sh

    The script is also in the lotus_root/notesdata directory on operating systems such as AIX or Linux.

    Issue the appropriate command for the script before starting the Domino Web Server.

  26. Regenerate the plugin-cfg.xml file on Machine A (the application server machine) using the administrative console. Click...

      Servers > Server Types > Web servers > web server > Generate Plug-in

    During the installation of the plug-ins, the default plugin-cfg.xml file is installed on Machine B (the machine with the web server) in...

      plugins_root/config/web_server

    The web server plug-in configuration service regenerates the plugin-cfg.xml file automatically. To use the current plugin-cfg.xml file from the application server, propagate the plugin-cfg.xml file as described in the next step.

    This step shows you how to regenerate the plugin-cfg.xml file. WAS products are configured to automatically regenerate the file each time a significant event occurs. Such events include installing applications on the application server and the web server, for example. Creating a new virtual host is another such event.

  27. Propagate the plugin-cfg.xml file from the application server to the web server using the administrative console. Click...

      Servers > Web server > web server > Propagate Plug-in

    Web servers other than IBM HTTP Server require manual propagation.

    The web server plug-in configuration service propagates the plugin-cfg.xml file automatically for IBM HTTP Server only. For all other web servers, propagate the plug-in configuration file by manually copying the plugin-cfg.xml file from the profile_root/config/cells/cell/nodes/node/servers/web_server directory on Machine A (the application server machine) to the plugins_root/config/web_server directory on Machine B (the machine with the web server).

  28. Start the Snoop servlet to verify the ability of the web server to retrieve an application from the application server.

    Test the environment by starting the application server, the web server, and using the Snoop servlet with an IP address.

    1. Start the application server. In a Network Deployment environment, the Snoop servlet is available in the cell only if you included the DefaultApplication when adding the application server to the cell. The -includeapps option for the addNode command migrates the DefaultApplication to the cell. If the application is not present, skip this step.

      Change directories to the profile_root/bin directory and run the startServer command:

      • (UNIX) ./startServer.sh server1
      • (Windows) startServer server1
      • (iSeries) startServer server1

    2. Start the IBM HTTP Server or the web server that we are using.

      (iSeries) Use either the 2001 page or use the STRTCPSVR SERVER(*HTTP) HTTPSVR(instance_name ) command to start the IBM HTTP Server.

      (Dist) Use a command window to change the directory to the IBM HTTP Server installed image, or to the installed image of our web server. Issue the appropriate command to start the web server, such as these commands for IBM HTTP Server:

      (Dist) To start the IBM HTTP Server from the command line:

      (Dist) Access the apache and apachectl commands in the IBMHttpServer/bin directory.

      • (UNIX) ./apachectl start
      • (Windows) apache

    3. Point your browser to http://localhost:9080/snoop to test the internal HTTP transport provided by the application server. Point your browser to http://Host_name_of_Web_server_machine/snoop to test the web server plug-in.

      The HTTP Transport port is 9080 by default and must be unique for every profile. The port is associated with a virtual host named default_host, which is configured to host the installed DefaultApplication. The Snoop servlet is part of the DefaultApplication. Change the port to match your actual HTTP Transport port.

    4. Verify that Snoop is running.

      Either Web address should display the Snoop Servlet - Request/Client Information page.

    5. Remote IBM HTTP Server only:

      (Dist) Verify that the automatic propagation function can work on a remote IBM HTTP Server using the following steps. This procedure is not necessary for local web servers.

      1. Create a user=adminUser, password=adminPassword in...

          IHS_root/conf/admin.passwd

        For example:

          c:\ws\ihs90\bin\htpasswd -cb
          c:\ws\ihs90\conf\admin.passwd adminUser adminPassword

      2. Use the administrative console of the deployment manager or the application server to enter the User ID and password information that we created for the administrative user of IBM HTTP Server. Go to...

          Servers > Web server > web_server_definition > Remote Web server administration

        Set the following values: admin Port=8008, User Id=adminUser, Password=adminPassword.

      3. Set the correct read/write permissions for the httpd.conf file and the plugin-cfg.xml file. See the IHS_root /logs/admin_ERROR_LOG file for more information.

      Automatic propagation of the plug-in configuration file requires the IBM HTTP administrative server to be up and running. If we are managing an IBM HTTP Server using the WAS administrative console, the following error might display:

        "Could not connect to IHS Administration server error"

      Perform the following procedure to correct the error:

      1. Verify that the IBM HTTP Server administration server is running.

      2. Verify that the web server host name and the port that is defined in the WAS administrative console matches the IBM HTTP Server administration host name and port.

      3. Verify that the fire wall is not preventing you from accessing the IBM HTTP Server administration server from the WAS administrative console.

      4. Verify that the user ID and password specified in the WAS administrative console under remote managed, is created in the admin.passwd file, using the htpasswd command.

      5. If we are trying to connect securely, export the IBM HTTP Server administration server keydb personal certificate into the WAS key database as a signer certificate. This key database is specified by the com.ibm.ssl.trustStore directive in the sas.client.props file in the profile where the administrative console is running. This consideration is primarily for self-signed certificates.

      6. If we still have problems, check the IBM HTTP Server admin_ERROR. LOG file and the WAS logs (trace.log file) to determine the cause of the problem.

  29. Create the second application server profile using the Profile Management Tool on Machine A. Make the profile the default profile during the profile creation by selecting the check box on the appropriate panel.

  30. (iSeries) Use the managedProfile command to create the second application server profile. During the creation process, designate this profile the default profile.

    The script that the Installation Manager creates only works on the default profile. So, this script can create only a web server definition on the profile that is the default profile at the time that the script runs.

  31. Install a second IBM HTTP Server or another supported web server on Machine B.

  32. On Machine B, configure the second web server using the Web Server Plug-ins Configuration Tool. Both web servers share a single installation of the plug-in binaries but must be configured individually.

  33. The Installation Manager creates a script named configureweb_server for the second web server. The script is in the plugins_root/bin directory on Machine B. Copy the script to app_server_root/bin on achine A.

  34. Start the second application server.

  35. Run the configureweb_server script on Machine A to create a web server definition in the administrative console. We can then use the administrative console to manage the web server.

  36. Propagate the plugin-cfg.xml file from the second application server to the web server using the administrative console. Click Servers > Web server > Propagate Plug-in. Web servers other than IBM HTTP Server require manual propagation.

  37. Run the Snoop servlet on the second web server to verify that it is operational.

This procedure results in installing two or more application servers on one machine and installing dedicated web servers on another machine. This procedure installs the Web Server Plug-ins for both web servers and configures both web servers and both application servers.


What to do next

See Select a web server topology diagram and roadmap for an overview of the installation procedure.

See Editing web server configuration files for information about how the Web Server Plug-ins Configuration Tool configures supported web servers.

See Web server configuration for more information about the files involved in configuring a web server.

For IHS web servers, we can stop and start the web server and propagate the plugin-cfg.xml file from the WAS machine to the web server machine. For all other web servers, we cannot start/stop or propagate the plugin-cfg.xml file in the admin console. You will need to propagate the plugin-cfg.xml file manually. The following three steps describes how to perform manual propagation:

  1. After completion of configuration with web servers, verify that the plugin-cfg.xml file exists at...

      <WAS_HOME>/profiles/<PROFILE_HOME>/config/cells/<CELL_NAME>/nodes/<SERVER_NAME>/servers/<WEBSERVER_DEFINITION>

  2. Transfer the above plugin-cfg.xml to replace...

      <PLUGIN_HOME>/config/<WEBSERVER_DEFINITION>/plugin-xfg.xml

  3. Restart the web server and corresponding profile.

  • Configure web server plug-ins
  • Configure a web server plug-in using the pct tool