the proxy setup is something missing, not the cake. try pen load balancer, i have try it with success.
On Fri, Jun 24, 2011 at 10:31 PM, John Hardy <[email protected]> wrote: > > Have you ensured that you setup your proxy to pass the > "HTTP_X_FORWARDED_FOR" header with the clients IP address > > You can dump the _SERVER var to check if that value is being passed in the > header. > > Also, I would suggest using HAPROXY as a software based proxy, it's built > specifically for such use-cases and, I can attest that it works perfectly > with > a cakephp install as I am using it now to load balance 15 web nodes and 3 > databases. > > On Jun 24, 2011, at 7:26 AM, Felipe Carballo wrote: > > > Hello guys! > > > > I'm having trouble to setting up a CakePHP app on a balanced > > environment: sessions seems to be lost between requests. I'm already > > using database to save sessions. > > > > Below is my balancer config: > > > > <VirtualHost 10.0.0.100:80> > > DocumentRoot /var/www/html > > DirectoryIndex index.htm index.html index.php > > ServerName www3.dominio.com > > Options -Indexes +FollowSymLinks > > > > ProxyPass /server-status ! > > ProxyPass /balancer-manager ! > > ProxyPass / balancer://WebCluster/ stickysession=BALANCEID > > nofailover=Off > > ProxyPassReverse / balancer://WebCluster/ > > > > <Proxy balancer://WebCluster> > > BalancerMember http://web1.dominio.com loadfactor=10 > > route=web1.dominio.com > > BalancerMember http://web2.dominio.com loadfactor=10 > > route=web2.dominio.com > > ProxySet lbmethod=byrequests > > </Proxy> > > > > <Location /balancer-manager> > > SetHandler balancer-manager > > Order deny,allow > > Allow from 192.168.0.0/20 > > </Location> > > > > </VirtualHost> > > > > There is something I'm missing? > > > > I appreciate if anyone can help me. =) > > > > -- > > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > > > > To unsubscribe from this group, send email to > > [email protected] For more options, visit this group > at http://groups.google.com/group/cake-php > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > [email protected] For more options, visit this group > at http://groups.google.com/group/cake-php > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
