apache sticky session
Hi
i cannot get the sticky session to work here is my config [load balancer] <VirtualHost 192.168.2.210:80> ServerName test12.com DocumentRoot /var/www/html/ ProxyRequests Off ErrorLog "/etc/httpd/logs/proxyer.log" CustomLog "/etc/httpd/logs/proxyac.log" combined <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass /balancer-manager ! ProxyPass / balancer://mycluster/ lbmethod=byrequests stickysession=BALANCEID ProxyPassReverse / http://test12.com/ ProxyPassReverse / http://test12.com/ <Proxy balancer://mycluster> BalancerMember http://http1.test12.com route=http1 BalancerMember http://http2.test12.com route=http2 #ProxySet lbmethod=byrequests </Proxy> <Location /balancer-manager> SetHandler balancer-manager Order deny,allow Allow from all </Location> </VirtualHost> [Server1] <VirtualHost *:80> ServerName http1.test12.com DocumentRoot /var/www/html/test RewriteEngine On RewriteRule .* - [CO=BALANCEID:balancer.http1.test12.com] TimeOut 300 DirectoryIndex index.php <Directory "/var/www/html/test/"> AllowOverride All Allow from All </Directory> </VirtualHost> [Server 2] <VirtualHost *:80> ServerName http2.test12.com DocumentRoot /var/www/html/test RewriteEngine On RewriteRule .* - [CO=BALANCEID:balancer.http2.test12.com] TimeOut 300 DirectoryIndex index.php <Directory "/var/www/html/test/"> AllowOverride All Allow from All </Directory> </VirtualHost> but i still get on different servers each time i refresh can anyone help |
thanks i have figured it out
|
All times are GMT -5. The time now is 10:50 PM. |