ngnix+proxy+mongrel => real host

Julien Biard julien.biard at citycampus.com
Fri Apr 27 13:18:42 MSD 2007


Thanks a lot Igor !

So I put the decleration at the http level and I removed the one at 
server level.

Best regards,


Julien

Igor Sysoev wrote:
> 
> Set these
> 
>       proxy_set_header   Host             $host;
>       proxy_set_header   X-Real-IP        $remote_addr;
>       proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
> 
> at http level, so they will be inherited (if not overriden by
> any proxy_set_header) to all servers and locations.
> 
> Then all request to the mongrel upstream will have a client "Host".






More information about the nginx mailing list