homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

apache load balancing problem
sticky session problem

Msg#: 4537528 posted 11:05 pm on Jan 19, 2013 (gmt 0)

hi all i have apche load balancer httpd.conf

<Location /balancer-manager>
SetHandler balancer-manager
Order Deny,Allow
Allow from all
<Proxy balancer://mycluster>
# cluster member 1
BalancerMember http://165WEBVM1.test.edu.eg:80 route=165WEBVM1

# cluster member 2
BalancerMember http://165WEBVM2.test.edu.eg:80 route=165WEBVM2
ProxySet timeout=60

ProxyPass /balancer-manager !
ProxyPass / balancer://mycluster/ lbmethod=byrequests stickysession=bytraffic
ProxyPassReverse / http://165WEBVM1.test.edu.eg/
ProxyPassReverse / http://165WEBVM2.test.edu.eg/

and in every node i have code like this

RewriteEngine On
RewriteRule .* - [CO=BALANCEID:balancer.165WEBVM1:.test.edu.eg]


RewriteEngine On
RewriteRule .* - [CO=BALANCEID:balancer.165WEBVM2:.test.edu.eg]

when view the []

[img836.imageshack.us ]

my problem is the data is shared in two server and i want it sticky per session
only one server should answer the request and the other server will serve another request

so any idea about That .


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved