[symfony-users] Re: Symfony and mod_remoteip

2010-09-10 Thread pghoratiu
Is the load balancer responsible for caching as well? Check http://en.wikipedia.org/wiki/X-Forwarded-For and retrieve the client IP address from that HTTP header. You don't need anything extra on the Apache side. gabriel On Sep 10, 12:52 pm, Laurent Vaills laurent.vai...@gmail.com wrote:

[symfony-users] Re: Symfony and mod_remoteip

2010-09-10 Thread Laurent Vaills
Yes, my load-balancer is responsible for caching as well and correctly set the header X-Forwarded-For. Actually, I really need the mod_remoteip because I want the real IP in the access_log . Laurent On Sep 10, 1:10 pm, pghoratiu pghora...@gmail.com wrote: Is the load balancer responsible for

[symfony-users] Re: Symfony and mod_remoteip

2010-09-10 Thread pghoratiu
Understand, you can have that also without the extra apache module, I use this to log both proxy and client IP: # If you are behind a reverse proxy, you might want to change %h into % {X-Forwarded-For}i LogFormat %{X-Forwarded-For}i %h %l %u %t \%r\ %s %b %T \% {Referer}i\ \%{User-Agent}i\ %D %X