Proxy_pass and remote_addr

Maxim Dounin mdounin at mdounin.ru
Mon Sep 14 11:41:41 MSD 2009


Hello!

On Sun, Sep 13, 2009 at 11:18:51PM +0200, Johan Bergström wrote:

> Good evening,
>
> I know I'm not the first to ask - but I can't seem to find an answer on 
> this mailing list, hence yet another question regarding passing  
> remote_addr.
>
> I'm proxying IIS 6.0 (with a caching nginx) which unfortunately can't  
> handle accepting X-Forwarded-For and the likes. The application I'm  
> running is so much enterprise that even thinking about implementing  
> support for XFF would cost gazillions of dollars :-( I've been playing  
> around with trying to overwrite remote_addr with the 'current' one but  
> unfortunately haven't found a way.
>
> Is it possible to pass a client ip to a proxy backend through  
> remote_addr (and not setting your own X-*)?

No.

But X-Forwarded-For support for IIS should be available, even for 
6.0.

Maxim Dounin





More information about the nginx mailing list