Network Deployment (Distributed operating systems), v8.0 > Set up intermediary services > Implement a web server plug-in > Configure web server plug-ins


Configure a web server and an application server profile on the same machine

This topic describes configuring a web server plug-in that WAS provides to communicate with a particular brand of web server. This procedure describes installing the web server and its web server plug-in for WAS and the application server on the same machine.

When multiple profiles exist, you 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 WAS product family supports a particular brand of web server, such as IBM HTTP Server or Microsoft Internet Information Services (IIS), your WAS product provides a binary plug-in for the web server that you must 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.

Suppose that you create a new profile and you 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, you can still install the Web Server Plug-ins for future use.

This procedure configures the application server profile that is the default profile on the machine. A one-to-one relationship exists between a web server and the application server.

However, a standalone application server profile and a managed profile can each have multiple web servers defined, each in a separate web server definition.

This article describes how to create the following topology:

Nonroot installation for the plug-in component is only supported if the application server was also installed by the same nonroot user. Otherwise, the web server configuration scripts will fail to run against the application server installation.

New feature: Beginning in WAS v8.0 you can configure the server to use the High Performance Extensible Logging (HPEL) log and trace infrastructure instead of using SystemOut.log , SystemErr.log, trace.log, and activity.log files or native z/OS logging facilities. If you are using HPEL, you can access all of your log and trace information using the LogViewer command-line tool from your server profile bin directory. See the information about using HPEL to troubleshoot applications for more information on using HPEL.New feature:

The Web Server Plug-ins Configuration Tool configures the plug-in for the supported web server after collecting the following information:

The Web Server Plug-ins Configuration Tool edits the configuration file or files for a web server by creating directives that point to the location of the binary plug-in module and the plug-in configuration file.

The name of the binary plug-in module varies per web server type. The plug-in configuration file is always the plugin-cfg.xml file. The Web Server Plug-ins Configuration Tool creates a web server definition in the configuration of the application server unless one already exists.

We can use the admin console to manage the web server configuration. For example, when you install an application on the application server, you can also choose to install it on the web server definition. If so, the updated plugin-cfg.xml file shows that the new application is available. When the web server reads the updated plug-in configuration file, the web server becomes aware of the new application that it can serve to web clients.

If you choose not to install the new application on the web server definition, the application is not added to the plug-in configuration file. The web server is not aware of the application and cannot serve it to web clients.

Tip: As an alternative to using the Web Server Plug-ins Configuration Tool, you 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 WCT command-line utility for more information.

Use this procedure to install the web server plug-in, configure the web server, and create a web server definition in the default application server profile.


Procedure


Results

The installation of the Web Server Plug-ins results in the creation of the Plugins directory and several subdirectories. The following directories are among those created on a Linux system, for example:

The Web Server Plug-ins Configuration Tool creates a web server definition within the application server profile unless one already exists.

The Web Server Plug-ins Configuration Tool configures the web server to use the PROFILE_ROOT/plugin-cfg.xml file.

The application server regenerates the web server plug-in configuration file, plugin-cfg.xml whenever an event occurs that affects the file. Such events include the addition or removal of an application, server, or virtual host. The standalone application server regenerates the file in the following location:

PROFILE_ROOT
   /config/cells/cell_name/nodes/
   web_server_name 

node/servers/ web_server_name

plugin-cfg.xml

On a federated node, the creation or removal of clusters and cluster members also causes file regeneration. The dmgr regenerates the file for a federated application server in the following location:

PROFILE_ROOT
   /config/cells/cell_name/nodes/
   node_name_of_AppServer/servers/
   web_server_name 

plugin-cfg.xml


What to do next

We can start a standalone application server and the web server immediately after configuring the plug-in for the local web server. Open the admin console of the application server after you start the server and save the changed configuration.

After configuring the plug-in for the local web server, you can start a federated application server and the web server after running the script that completes the configuration. Open the administrative console of the dmgr. Wait for node synchronization to occur. Save the changed configuration that includes the new web server definition.

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

See Plug-ins configuration for information about the location of the plug-in configuration file.

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

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

See Configure web server plug-ins for information about other installation scenarios for installing web server plug-ins.
Plug-ins configuration
Web server configuration
Configure a web server plug-in using the WCT command-line utility
Configure web server plug-ins

+

Search Tips   |   Advanced Search