Ip Address

Per Buer perbu at linpro.no
Tue Sep 2 08:10:12 CEST 2008


Jack Tuhman skrev:
>
> We have a very old webapp that has an embedded server.   We have put
> varnish in front of it to help with load while we rewrite it.   However,
> it is detecting the IP address of the varnish box rather then the
> client.  I know that in apache, we can fix this by looking at
> HTTP_X_FORWARDED_FOR, however, our old app does not let us do that.  Is
> there anything we can do in varnish to pass the real ip in the
> REMOTE_ADDR server var?

The REMOTE_ADDR server variable is set locally on the web server. So,
unless you can write some custom code to override REMOTE_ADDR you are
out of luck. :-(


Per.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20080902/32b8e2b5/attachment-0002.pgp>


More information about the varnish-misc mailing list