Este conteúdo não está disponível no idioma selecionado.
Chapter 8. Advanced Configuration
8.1. Static Proxy Configuration Copiar o linkLink copiado para a área de transferência!
Procedure 8.1. Configure Application Platform Worker Node with Static Proxy List
Disable Dynamic Proxy Discovery
Edit thestandalone/configuration/standalone-ha.xmlfile and set theadvertiseproperty to false as follows:<mod-cluster-config advertise='false" connector="ajp" proxy-list="${jboss.modcluster.proxyList:}"><mod-cluster-config advertise='false" connector="ajp" proxy-list="${jboss.modcluster.proxyList:}">Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Choose and implement one of the following static proxy options:
Option 1: Create a Static Proxy Server List
Edit the filestandalone/configuration/standalone-ha.xmland add a comma separated list of proxies in the form of IP_ADDRESS:PORT in theproxyListproperty.Example 8.1. Example Static Proxy List
<mod-cluster-config advertise="false" connector="ajp" proxy-list="10.33.144.3:6666,10.33.144.1:6666">
<mod-cluster-config advertise="false" connector="ajp" proxy-list="10.33.144.3:6666,10.33.144.1:6666">Copy to Clipboard Copied! Toggle word wrap Toggle overflow Option 2: Start the Worker Node with a Static Proxy List as a Parameter
- Edit
standalone/configuration/standalone-ha.xml. - Add the following line:
<mod-cluster-config advertise="false" connector="ajp" proxy-list="${jboss.modcluster.proxyList:}"><mod-cluster-config advertise="false" connector="ajp" proxy-list="${jboss.modcluster.proxyList:}">Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Add a comma separated list of proxies in the form of IP_ADDRESS:PORT as the
jboss.modcluster.proxyListparameter when starting the node.Example 8.2. Example Static Proxy List Parameter
-Djboss.modcluster.proxyList=10.33.144.3:6666,10.33.144.1:6666
-Djboss.modcluster.proxyList=10.33.144.3:6666,10.33.144.1:6666Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 8.2. 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.3. 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