Chapter 8. Advanced Configuration
8.1. Static Proxy Configuration Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Server advertisement allows worker nodes to dynamically discover and register themselves with proxy servers. If UDP broadcast is not available or server advertisement is disabled then worker nodes must be configured with a static list of proxy server addresses and ports.
Use the following procedure to configure a JBoss Enterprise Web Server worker node to operate with a static list of proxy servers.
Prerequisites
Ensure that the following prerequisites are satisfied before initiating the procedure.
- JBoss Enterprise Web Server worker node configured. See Section 7.1, “Worker Node Requirements” for directions.
- Understand the Proxy Configuration parameters discussed in the Java Properties Reference Appendix.
Procedure 8.1. Configure Web Server Worker Node with Static Proxy List
Disable Dynamic Proxy Discovery
Edit the fileJBOSS_EWS_DIST/tomcat6/conf/server.xml. and set theadvertiseproperty of the ModClusterListener to false:Define a mod_cluster listener
Add a <Listener> element to theserver.xmlfile.<Listener className="org.jboss.modcluster.container.catalina.standalone.ModClusterListener" advertise="false" stickySession="true" stickySessionForce="false" stickySessionRemove="true"/>
<Listener className="org.jboss.modcluster.container.catalina.standalone.ModClusterListener" advertise="false" stickySession="true" stickySessionForce="false" stickySessionRemove="true"/>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create a static proxy server list
Add a comma separated list of proxies in the form of IP_ADDRESS:PORT as theproxyListproperty of the ModClusterListener <Listener> element.Example 8.1. Example Static Proxy List
<Listener className="org.jboss.modcluster.container.catalina.standalone.ModClusterListener" advertise="false" stickySession="true" stickySessionForce="false" stickySessionRemove="true" proxyList="10.33.144.3:6666,10.33.144.1:6666"/>
<Listener className="org.jboss.modcluster.container.catalina.standalone.ModClusterListener" advertise="false" stickySession="true" stickySessionForce="false" stickySessionRemove="true" proxyList="10.33.144.3:6666,10.33.144.1:6666"/>Copy to Clipboard Copied! Toggle word wrap Toggle overflow