6.6.45.0: Properties of WebSphere plug-ins for Web servers

HTTP plug-ins

The plugin-cfg.xml file includes the following elements and attributes:

Config (exactly one)
This element starts the WebSphere HTTP plug-in configuration file. It contains all other elements and attributes of the configuration.

Refresh interval (exactly one)
The time interval (in seconds) at which the plug-in should check the configuration file to see if updates or changes have occured. The plug-in stats the file and checks to see if modifications have occurred since the last time the plug-in configuration was loaded.

In a development environment in which changes are frequent, a lower setting than the default setting of 60 is recommended. In production, a higher value then the default is a good idea since updates to the configuration will not occur as often. If the plug-in reload fails for some reason, a message is written to the plug-in log file and the previous configuration is used until the plug-in config reload is successful. If you are not seeing the changes you made to your plug-in configuration, check the plug-in log file for indications of the problem.

Log (zero or one for each Config)
The log describes the location and level of log messages that should be written by the plug-in. If a Log is not specified within the Config, then in some cases log messages will be written to the Web server error log.

Name (exactly one)
The fully qualified path to the log file to which the plug-in will write error messages.

If the file does not exist then it will be created. If the file already exists then it will be opened in append mode and the previous plug-in log messages will remain.

LogLevel (zero or one for each Log)
The level of detail of the log messages that the plug-in should write to the log. Values for this attribute are one of the following:

  • Trace
  • Warn
  • Error

If a LogLevel is not specified with the Log, then the default value is Error.

Trace allows you to see the steps in the request process in detail. Warn and Error means that only information about abnormal request processing will be logged.

Be careful when setting the level to Trace. A lot of error messages are logged at this level which can cause the disk space to fill up very quickly. A Trace setting should never be used in a normally functioning environment as it affects performance.

<ServerGroup name="Servers">
	<Server name="Server1">
		<Transport Hostname="localhost" Port="9080" Protocol="HTTP"/>
		<Transport Hostname="localhost" Port="9443" Protocol="HTTPS">
			<Property name="Keyring"  value="c:/WebSphere/AppServer/keys/keyring.kdb"/>
			<Property name="Stashfile"  value="c:/WebSphere/AppServer/keys/keyring.sth"/>
	</Server>
</ServerGroup>
ServerGroup (one or more for each Route)
A group of servers that are generally configured to service the same types of requests.

In the simplest case, the server group will contain only one server definition. In the case in which more than one server is defined, the plug-in will load balance across the defined servers using either a Round Robin or a Random algorithm. The default is Round Robin.

Name (exactly one for each ServerGroup)
The logical or administrative name to be used for this group of servers.
LoadBalance (one for each ServerGroup)
The default load balancing type is Round Robin

The Round Robin implementation has a random starting point. This means that the first server picked will be done so randomly and then round robin will be used from that point forward. This is so that in multiple process based Web servers all of the processes don't start up by sending the first request to the same application server.

RetryInterval (one for each ServerGroup)
An integer specifying the length of time that should elapse from the time that a server is marked down to the time that the plug-in will retry a connection. The default is 60 seconds.
RemoveSpecialHeaders (one for each ServerGroup)
The plug-in adds special headers to the request before it is forwarded to the application server. These headers store information about the request that will need to be used by the application. By default the plug-in will remove these headers from incoming requests before adding the headers it is supposed to add.

The value can be true or false.

Setting the attribute to false introduces a potential security exposure by not removing headers from incoming requests.

Server (one or more for each ServerGroup)
A WebSphere Application Server instance that is configured to handle requests routed to it given the routing rules of the plug-in configuration. The Server should correspond to an application server running on either the local machine or a remote machine.
Name (exactly one for each Server)
The administrative or logical name for the server.
CloneID (zero or one for each Server)
If this unique ID is present in the HTTP Cookie header of a request (or the URL if using URL rewriting), the plug-in routes the request to this particular server, provided all other routing rules are met. If a CloneID is not specified in the Server, then Session Affinity is not enabled for this server.

Used in conjunction with Session Affinity. When this attribute is set the plug-in will check the incoming cookie header or URL for jsessionid. If the jsessionid is found then the plug-in will look for a clone ID or clone IDs. If clone IDs are found and a match is made to this attribute then the request will be sent to this server rather than being load balanced across the server group.

If you are not using Session Affinity then it is best to remove these clone IDs from the configuration because there is added request processing in the plug-in when these are set. If clone IDs are not in the plug-in then it is assumed that session affinity is not on and the request is load balanced across the server group.

WaitForContinue (one for each Server)
This true or false attribute allows you to specify whether to use the HTTP 1.1 100 Continue support before sending the request content to the application server. The default is false.

This function is necessary when configuring the plug-in to work with certain types of proxy firewalls. The plug-in by default does not wait for the 100 Continue response from the application server before sending the request content because it is a performance hit.

Transport (one or more for each Server)
The transport for reading and writing requests to a particular WebSphere application server instance. The transport provides the information needed to determine the location of the application server to which the request will be sent. If the Server has multiple transports defined to use the same protocol, the first one will be used.

It is possible to configure the Server to have one non-secure transport and one that uses SSL. In this configuration, a match of the incoming request protocol will be performed to determine the appropriate transport to use to send the request to the application server.

Hostname (exactly one for each Transport)
The hostname or IP address of the machine on which the WebSphere application server instance is running.
Port (exactly one for each Transport)
The port on which the WebSphere application server instance is listening.
Protocol (exactly one for each Transport)
The protocol to use when communicating over this transport -- either HTTP or HTTPS.
Property (zero, one, or more for each Transport)
When the Protocol of the Transport is set to HTTPS, use this element to supply the various initialization parameters, such as keyfile and stashfile.
Name (exactly one for each Property)
The name of the Property being defined. Supported names recognized by the transport are keyring, stashfile, and password.
Value (exactly one for each Property)
The value of the Property being defined.
<VirtualHostGroup name="Hosts">
	<VirtualHost name="www.x.com"/>
	<VirtualHost name="www.x.com:443"/>
	<VirtualHost name="*:8080"/>
	<VirtualHost name="www.x.com:*"/>
	<VirtualHost name="*:*"/>
</VirtualHostGroup>
VirtualHostGroup (zero, one, or more for each Config)
A group of virtual host names that will be specified in the HTTP Host header. Enables you to group virtual host definitions together that are configured to handle similar types of requests.
Name (exactly one for each VirtualHostGroup)
The logical or administrative name to be used for this group of virtual hosts.
VirtualHost (one or more for each VirtualHost)
The name used for a virtual or real machine used to determine if incoming requests should be handled by WebSphere Application Server or not. Use this element to specify hostnames that will be in the HTTP Host header that should be seen for requests that need to be handled by the application server. You can specify specific hostnames and ports that incoming requests will have or specify a * for either the hostname, port, or both.

Name (exactly one for each VirtualHost)
The actual name that should be specified in the HTTP Host header in order to match successfully with this VirtualHost.

The value is a hostname or IP address and port combination, separated by a colon.

The plug-in can be configured to route requests to the application server based on the incoming HTTP Host header and port for the request. Name allows you to specify what those combinations are.

Wildcarding is available for this attribute. The only acceptable solutions are either a * for the hostname, a * for the port, or a * for both. A * for both means that any request will match this rule. If no port is specified in the definition the default HTTP port of 80 is assumed.

<UriGroup name="Uris">
	<Uri name="/servlet/snoop"/>
	<Uri name="/webapp/*"/>
	<Uri name="*.jsp"/>
</UriGroup>
UriGroup (one or more for each Config)
A group of uris that will be specified in the HTTP request line. They will be able to be handled by the same application server. The route will compare the incoming uri with the uris in the group to determine if the application server will handle the request.
Name (exactly one for each UriGroup)
The logical or administrative name for this group of uris.
Uri (one or more for each UriGroup)
The virtual path to the resource that will be serviced by WebSphere Application Server. Each Uri specifies the incoming URLs that need to be handled by the application server. Wildcarding is available in these definitions.

Name (exactly one for each Uri)
The actual string that should be specified in the HTTP request line in order to match successfully with this Uri. Wildcarding within the uri definition is acceptable. You can specify rules such as *.jsp or /servlet/* to be handled by WebSphere Application Server.
<Route VirtualHostGroup="Hosts" UriGroup="Uris" ServerGroup="servers/>
Route (one or more for each Config)
A request routing rule by which the plug-in will determine if an incoming request should be handled by a WebSphere application server.

The route definition is the central element of the plug-in configuration. It specifies how the plug-in will handle requests based on certain characteristics of the request. The route definition contains the other main elements: a required ServerGroup, and either a VirtualHostGroup, UriGroup, or both.

Using the information that is defined in the VirtualHostGroup and the UriGroup for the route, the plug-in determines if the incoming request to the Web server should be sent on to the ServerGroup defined in this route.

VirtualHostGroup (zero or one for each Route)
The group of virtual hosts that should be used in route determination. The incoming host header and server port are matched to determine if this request should be handled by the application server.

It is possible to omit this from the route definition. If it is not present then every request will match during the virtual host match portion of route determination.

UriGroup (zero or one for each Route)
The group of uris to use for determining the route. The incoming uri for the request are matched to the defined uris in this group to determine if this request should be handled by the application server.

It is possible to omit this from the route definition. If it is not present than every request will match during the uri match portion of route determination.

ServerGroup (exactly one for each Route)
The server group to which to send request that successfully match the route.

The server group that should be used to handle this request. If both the uri and the virtual host matching is successful for this route then the request will be sent to one of the servers defined within this server group.

Finding the plug-in configuration files

The working or active versions of the HTTP plugin-cfg.xml file resides in the directory:

product_installation_root/config