I am getting wrong response from nginx

Maxim Dounin mdounin at mdounin.ru
Tue Apr 17 12:43:03 UTC 2012


Hello!

On Tue, Apr 17, 2012 at 03:29:26PM +0300, Pekka.Panula at sofor.fi wrote:

> > By default nginx uses the name you wrote in a proxy_pass directive 
> > for the Host header.  You probably want to use
> > 
> >     proxy_set_header Host $host;
> > 
> > or something similar in the locations above.
> > 
> > [...]
> > 
> > Maxim Dounin
> 
> 
> Hi, look again, i do have a proxy_set_header line in my http block. It 
> should inherit it to server blocks, afaik?

No.

Quote from http://nginx.org/r/proxy_set_header:

    These directives are inherited from the previous level if and only 
    if there are no proxy_set_header directives defined on the current 
    level.

Maxim Dounin



More information about the nginx mailing list