Hi, thanks for the reply.

Originally Posted by
benvargas
From your post, it sounds as if you're successful with mod_ajp and the SC/SM web client? If so, it would be great if you posted some example configuration files for those that haven't gone that route yet.

Well, this is much, much simpler than mod_jk.
1. install apache httpd 2.2.x (the newest the better in this case)
2. open httpd.conf in text editor
3. enable: mod_proxy, mod_proxy_ajp, mod_proxy_balancer
(remove # in the proper LoadModule config lines)
4. put following in the last lines of httpd config:
Code:
<IfModule mod_proxy.c>
ProxyRequests Off
<Proxy balancer://smclust>
BalancerMember ajp://sm01-centrala:8009 route=tomcatA
BalancerMember ajp://sm01-centrala:8011 route=tomcatB
BalancerMember ajp://sm01-centrala:8013 route=tomcatC
</Proxy>
<Location /sm7>
ProxyPass balancer://smclust/sm7 stickysession=JSESSIONID|jsessionid
</Location>
#helpserver proxy
ProxyPass /smhelp http://smhelpserver.hostname:8083
#balancer-manager app
<Location /balancer-manager>
SetHandler balancer-manager
Order Deny,Allow
Deny from all
#put your host address below for gaining access to this app
Allow from localhost
</Location>
</IfModule>
5. define routes in all tomcat conf\server.xml's
<Engine name="Standalone" defaultHost="localhost" jvmRoute="tomcatA">
6. deploy SM7 webtier app to all tomcat instances
(make sure the tomcat's webapp url matches the one defined in httpd.conf - in this case "sm7")
7. start/restart httpd, check balancer status under http://<http webserver>/balancer-manager
Try accessing http://<http webserver>/sm7
while looking at the balancer app, you should see some new stats.
8. You're (hopefully) done!
mod_proxy_balancer documentation (extremely helpful): http://httpd.apache.org/docs/2.2/mod..._balancer.html
HTH.
Bookmarks