3 messages in ru.sysoev.nginxRe: ngnix+proxy+mongrel => real host
FromSent OnAttachments
Julien BiardApr 27, 2007 1:02 am 
Igor SysoevApr 27, 2007 1:14 am 
Julien BiardApr 27, 2007 2:18 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: ngnix+proxy+mongrel => real hostActions...
From:Julien Biard (juli@public.gmane.org)
Date:Apr 27, 2007 2:18:19 am
List:ru.sysoev.nginx

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".