proxy_set_header host

Francisco Treacy lists at
Tue Dec 29 15:27:01 MSK 2009

Igor Sysoev wrote:
> There is no "ServerName" header. Probably, you need just
>         location / {
>              proxy_pass              http://localhost:9090/app/;
>         }

This is the first thing I tried. Now I updated nginx to 0.7.x and 
$server_name trick doesn't work anymore. It is still unclear to me how 
to obtain the server name as a header.

Btw, it doesn't have to be an "official" HTTP header... anything will do 
as long as I can obtain the "" in my code.

Could you please show me how?


Posted via

More information about the nginx mailing list