Installation guide

5. SERVLETEXEC APPLICATION SERVER (UNIX)
ServletExec 4.1 Installation Guide 78
The following directive causes Apache to load the ServletExec/AS web server adapter
and was added to httpd.conf with the other LoadModule directives (near the top of
the file):
LoadModule servletexec_module libexec/mod_servletexec.so
The following directives define the default prefix and suffix aliases used by
ServletExec/AS and 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
See the ServletExec User Guide for a general discussion of servlet aliases, as well as
Section 6.5.3.3 and Section 6.5.3.5 for further discussion of configuring prefix and suffix
aliases with Apache.
Connection Pooling Between the Web Server Adapter and ServletExec
This feature is not currently available for ServletExec/AS on Apache Http Server (UNIX).
6.5.3.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.
To update the ServletExecApplications directive in httpd.conf
Use the following form:
ServletExecApplications <instance-name> /URL-context1 /URL-context2
<Location /URL-context1>
SetHandler servlet-exec
</Location>
<Location /URL-context2>
SetHandler servlet-exec
</Location>
6.5.3.4 Prefix Aliases
For each prefix alias that is configured using the ServletExec Admin UI, the
ServletExecAliases directive must be updated, and a Location directive must be
added to httpd.conf in the following format:
ServletExecAliases <instance-name> /prefix-alias
<Location /prefix-alias>
SetHandler servlet-exec
</Location>
If you allowed the ServletExec/AS installer to automatically update httpd.conf,
ServletExec/AS is configured to handle the
/servlet prefix alias by default.