Installation guide

3. Specify the node name by appending the jvmRoute attribute to the <Engine> element in
server.xml. T he jvmRoute attribute value is the node name defined in
HTTPD_DIST/conf/workers.properties.
<!--Preceeding syntax removed for readability -->
<Engine name="jboss.web" defaultHost="localhost" jvmRoute="node1">
<!--Proceeding syntax removed for readability -->
</Engine>
Important
If you intend to configure more than one server node in a cluster, ensure you change the
jvmRoute attribute value to a unique name each time you repeat this step.
4. In server.xml, ensure the AJP protocol <connector> element is enabled (uncommented). T he
element is uncommented by default in new installations.
<Connector protocol="AJP/1.3" port="8009" address="${jboss.bind.address}"
redirectPort="8443" />
5. You now have a correctly configured Apache httpd Server with mod_jk load balancer, which
balances calls to the servlet containers in the cluster, and ensures clients will always use the
same servlet container (sticky sessions).
Note
For supplementary information about using mod_jk with JBoss, refer to the JBoss wiki page at
https://community.jboss.org/wiki/UsingModjk12WithJBoss.
JBoss Enterprise Application Platform 5 HTTP Connectors Load Balancing Guide 15