fine.
[]'s
On 24 jun, 14:06, Felipe Carballo <felipecarball...@gmail.com> wrote:
> John, i verified that the "HTTP_X_FORWARDED_FOR" is being passed
> correctly.
>
> We chose the Apache Load Balancer for this project because we already
> have another application (Roundcube Webmail) running in the same
> scenario.
>
> Best regards.
>
> On 24 jun, 11:31, John Hardy <john.c.ha...@gmail.com> 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>
> > > BalancerMemberhttp://web1.dominio.comloadfactor=10
> > > route=web1.dominio.com
> > > BalancerMemberhttp://web2.dominio.comloadfactor=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 Tutorialshttp://tv.cakephp.org
> > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp others with their CakePHP related questions.
>
> > > To unsubscribe from this group, send email to
> > > cake-php+unsubscribe@googlegroups.com For more options, visit this group athttp://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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment