Example with mod_jk
Install the Proxy Plug-In for JBoss - CA Identity Manager - 12.6.6 - CA Technologies Documentation
Example with mod_proxy.
Architecture:
httpd.conf maintained as is with limited changes
- jboss_proxy.conf [ proxy modules for load balancing to Jboss ]
- ssl_certs.conf [ SSL functionality pulled into separate configuration file. reference Apache included file httpd-ssl.conf ]
-performance.conf [ performance tweaks with header, deflate, compress, etc. ]
Within jboss_proxy.conf [ As test, deployed JBOSS twice on same host with offset ports to avoid collisions with two (2) hostnames]
**** configuration file below ****
###################################
# JBOSS PROXY REDIRECT & LOAD BALANCE CONFIGURATION
###################################
User smuser
Group smuser
###################################
# Left as reference to items that should exist in httpd.conf
# Defined by # ./configure --prefix=/opt/CA/httpd --enable-ssl --enable-mods-shared='proxy ssl deflate expires headers' --enable-so
###################################
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
### Need mod_proxy_connect for SSL
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
<Proxy balancer://iam_cluster>
Order deny,allow
Allow from all
BalancerMember http://idm01.domain.dom:8080/iam route=node1
BalancerMember http://idm02.domain.dom:8180/iam route=node2
</Proxy>
<Proxy balancer://castyles_cluster>
Order deny,allow
Allow from all
BalancerMember http://idm01.domain.dom:8080/castylesr5.1.1 route=node1
BalancerMember http://idm02.domain.dom:8180/castylesr5.1.1 route=node2
</Proxy>
# Define the "URI" that will redirect to the correct "cluster"
ProxyPass /iam balancer://iam_cluster lbmethod=byrequests stickysession=JSESSIONID|jsessionid
ProxyPassReverse /iam balancer://iam_cluster
ProxyPass /castylesr5.1.1 balancer://castyles_cluster lbmethod=byrequests stickysession=JSESSIONID|jsessionid
ProxyPassReverse /castylesr5.1.1 balancer://castyles_cluster
# Enable Monitor Tool - Built into mod_proxy_balancer - Use ONLY on Admin Location - Disabled for Production Env.
<Location /balancer-manager>
SetHandler balancer-manager
Order deny,allow
Allow from all
</Location>
ProxyPass /balancer-manager !
ProxyPass / balancer://iam_cluster/ stickysession=JSESSIONID|jsessionid nofailover=Off scolonpathdelim=On
###################################
# Set debug level for logs to validate processes
# Disable after initial deployment is successful
LogLevel debug
###################################