All
This is too weird, I am hoping somebody can explain it to me. If I change
my configuration to the following:
<IfModule proxy_balancer_module>
ProxyRequests off
<Proxy balancer://my_cluster>
BalancerMember http://192.168.1.20:8080 loadfactor=1
BalancerMember http://192.168.1.21:8080 loadfactor=1
BalancerMember http://192.168.1.22:8080 loadfactor=1
Order Deny,Allow
Allow from all
</Proxy>
SetHandler balancer-manager
ProxyPass /examples balancer://my_cluster/examples stickysession=JSESSIONID
ProxyPassReverse /examples balancer://my_cluster/examples
ProxyPass /my_application balancer://my_cluster/my_application
stickysession=JSESSIONID
ProxyPassReverse /my_application balancer://my_cluster/my_application
</IfModule>
Everything appears to work exactly as expected. My sessions are acting like
they are supposed and everything seems to be playing nice. So why does taking
the "ProxyPass" and "ProxyPassReverse" out of the "Location" tags make it
work???
Thanks for reading and replying.
________________________________________
From: Alston, Brian (US SSA) [[email protected]]
Sent: Tuesday, March 24, 2009 11:23 AM
To: [email protected]
Subject: Does this look correct to everybody?
All
I am "attempting" to cluster 3 Apache Tomcat 6 servers behind a load
balancing Apache httpd server. I say "attempting" because I am having no
success. I wanted to post some of my configurations here to see if what I have
is correct.
My setup is as follows:
Apache httpd: 192.168.1.10 - (version 2.2.3)
Apache Tomcat: 192.168.1.20 - (version 6.0.18)
Apache Tomcat: 192.168.1.21 - (version 6.0.18)
Apache Tomcat: 192.168.1.22 - (version 6.0.18)
Here is the configuration that I may need help with:
<IfModule proxy_balancer_module>
ProxyRequests off
<Proxy balancer://my_cluster>
BalancerMember http://192.168.1.20:8080 loadfactor=1
BalancerMember http://192.168.1.21:8080 loadfactor=1
BalancerMember http://192.168.1.22:8080 loadfactor=1
Order Deny,Allow
Allow from all
</Proxy>
<Location /balancer-manager>
SetHandler balancer-manager
Order Deny,Allow
Allow from all
</Location>
<Location /examples>
ProxyPass balancer://my_cluster/examples stickysession=JSESSIONID
ProxyPassReverse balancer://my_cluster/examples
Order Deny,Allow
Allow from all
<Location>
<Location /my_application>
ProxyPass balancer://my_cluster/my_application stickysession=JSESSIONID
ProxyPassReverse balancer://my_cluster/my_application
Order Deny,Allow
Allow from all
<Location>
</IfModule>
I thought that this was correct but I am having issues with sessions and some
kind person on an earlier post of mine suggested that it could be my
configuration so I figured I would post it for all to see and critique.
Thank you all for reading and replying. Have a great day.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]