6.2. Configure a Load-balancing Proxy Using the HTTP Connector
The following are a series of prerequisites for this procedure:
- Install JBoss Enterprise Web Server. See JBoss Enterprise Web Server Installation Guide for details.
 - Install JBoss HTTP Connector modules. See Section 1.2, “Download and Install” for details.
 
Procedure 6.1. Configure a Load-balancing Proxy Using the HTTP Connector
Create a Listen Directive for the Proxy Server
Edit the configuration fileJBOSS_EWS_DIST/httpd/conf.d/JBoss_HTTP.confand add the following:Listen IP_ADDRESS:PORT_NUMBER
Listen IP_ADDRESS:PORT_NUMBERCopy to Clipboard Copied! Toggle word wrap Toggle overflow Where IP_ADDRESS is the IP address of a server network interface to communicate with the worker nodes, and PORT_NUMBER is the port on that interface to listen on.Note
The port PORT_NUMBER must be open on the server firewall for incoming TCP connections.Example 6.1. Example Listen Directive
Listen 10.33.144.3:6666
Listen 10.33.144.3:6666Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create Virtual Host
Add the following to the fileJBOSS_EWS_DIST/httpd/conf.d/JBoss_HTTP.conf:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Where IP_ADDRESS and PORT_NUMBER are the values from the Listen directive.Optional: Disable Server Advertisement
TheAdvertiseFrequencydirective, set to five seconds, makes the server to periodically send server advertisement messages via UDP multicast.These server advertisement messages contain the IP_ADDRESS and PORT_NUMBER specified in the VirtualHost definition. Worker nodes configured to respond to server advertisements use this information to register themselves with the proxy server.To disable server advertisement, add the following directive to theVirtualHostdefinition:ServerAdvertise Off
ServerAdvertise OffCopy to Clipboard Copied! Toggle word wrap Toggle overflow If server advertisements are disabled, or UDP multicast is not available on the network between the proxy server and the worker nodes, configure worker nodes with a static list of proxy servers. See Section 8.1, “Static Proxy Configuration” for directions.Restart the JBoss Enterprise Web Server Apache service
See the JBoss Enterprise Web Server documentation for detailed directions.