Re: Remote IP抯 with HAProxy

From: Clinton <clinton#goldsgym.biz>
Date: Sat, 29 Oct 2011 06:43:54 +1100


I'm suprised nobody has replied you (unless I just can't see it!)

Your options are to run a transparent proxy (not the ideal choice, quite difficult) Second choice it to run one of many apache extensions, i personally use mod_rpaf as it didn't require any additional configuration of my web application.

Let us know how you go!

www.goldsgym.biz

On 24/10/2011, at 8:42 PM, Iceskysl wrote:

> hey all
>
> I抦 testing a new web server setup which is having a couple of issues. Essentially, we have a web server, where the code uses the remote IP for some interesting things, and also some apache directories secured down to some certain IP抯 (our office etc).
>
> However, we抳e just chucked this behind ha_proxy so we can look at adding some more app servers, but now the remote IP is always coming through as the proxy ip(127.0.0.1), not the real remote user. This means we can抰 get to some locations, and our app is behaving a little oddly where user IP is important.
>
>
>
>
>
> ----------------------
> All the best,
> IceskYsl#1.s.t
> http://iceskysl.1sters.com
> http://www.1sters.com
>
Received on 2011/10/28 21:43

This archive was generated by hypermail 2.2.0 : 2011/10/28 22:00 CEST