[prev in list] [next in list] [prev in thread] [next in thread]
List: nginx
Subject: Re: ngnix+proxy+mongrel => real host
From: Julien Biard <julien.biard () citycampus ! com>
Date: 2007-04-27 9:18:42
Message-ID: 4631BFF2.1000508 () citycampus ! com
[Download RAW message or body]
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".
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic