Installation guide
5. SERVLETEXEC APPLICATION SERVER (WINDOWS)
ServletExec 4.1 Installation Guide 58
5.5.5.2 Server Configuration File (httpd.conf)
To install a ServletExec/AS web server adapter for Apache, modifications must be made
to the web server’s httpd.conf file. This section describes the modifications to
httpd.conf made by the ServletExec/AS installer.
Important
If you chose not to allow the installer to make these modifications, you must make them
manually.
The following directive was added to httpd.conf with the other LoadModule
directives (near the top of the file):
LoadModule servletexec_module modules/ApacheModuleServletExec.dll
This directive causes Apache to load the ServletExec/AS web server adapter.
The following lines were added to the end of the
httpd.conf file:
ServletExecInstances <instance-name> 127.0.0.1:8888
ServletExecAliases <instance-name> /servlet .tmpl .jsp
<Location /servlet>
SetHandler servlet-exec
</Location>
AddHandler servlet-exec jsp
These directives define the default prefix and suffix aliases used by ServletExec/AS
See the ServletExec User Guide for a general discussion of servlet aliases, as well as
further discussion of configuring prefix and suffix aliases with Apache, in Section 5.5.5.3
and Section 5.5.5.5.
Connection Pooling Between the Web Server Adapter and ServletExec
The installer automatically enables connection pooling between the web server adapter
and ServletExec, using default settings. The purpose of this connection pooling is to
improve performance through better resource management.
You can change the default settings by modifying the configuration file as explained
below. The two parameters that provide the connection pooling are: pool max idle
(sets maximum idle time for a connection… default setting is 10) and pool increment.
(sets connection increment value… default setting is 5).
A good guideline for changing these parameters from their default settings would be to
set the
pool max idle to your average number of connections, and to set the pool
increment
to the average spike number of connections.
To modify Connection Pooling in Apache HTTP Server for ServletExec/AS (Windows)
• Add the following to the end of the http.conf file on two separate lines:
ServletExecPoolIncrement <instance-name> <value>
ServletExecPoolMaxIdle <instance-name> <value>
5.5.5.3 Web Application URL Context
For each web application URL context configured using the ServletExec Admin UI, you
must update the ServletExecApplications directive in the httpd.conf file.