Load Balance Advice
Igor Sysoev
is at rambler-co.ru
Tue Jun 24 12:36:33 MSD 2008
On Tue, Jun 24, 2008 at 09:16:18AM +0100, Alan Williamson wrote:
> Igor Sysoev wrote:
> >>I had missed this direction:
> >>
> >> proxy_set_header Host $host;
> >>
> >>irrespective of what HTTP version i was coming in on, it was dropping
> >>the "host:" directive. As soon as i put that in, burst into life.
> >
> >By default "Host" is set to a host in proxy_pass directive, i.e., if
> >
> > proxy_pass http://myproject;
> >
> >then "Host" will be "myproject".
>
> Thanks Igor. So i take it then my proxy_set_header directive overwrites
> the "Host" part. The backends won't be presented with 2 "Host" fields?
Any proxy_set_header always overrides header.
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list