Load Balance Advice

Alan Williamson alan at blog-city.com
Tue Jun 24 12:16:18 MSD 2008


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?

-- 
Alan Williamson

  Try our free registrationless email/sms reminder
    http://yourli.st/

  b: http://alan.blog-city.com/





More information about the nginx mailing list