X-Forwarded-Host support

Igor Sysoev is at rambler-co.ru
Sun Jan 6 11:04:35 MSK 2008


On Sat, Jan 05, 2008 at 01:06:16PM +0100, Manlio Perillo wrote:

> Igor, do you plan to add support to the X-Forwarded-Host in nginx?
> This can be used in the same way X-Forwarded-For is used in the realip 
> module.

I do not understand the X-Forwarded-Host use. The realip module is required
to change IP part of HTTP request on backend side. The "Host" header line
is HTTP part and it can be easy set on nginx side:

       proxy_pass        http://backend1;
       proxy_set_header  Host   backend2;

and you do not need to do anything on backend side.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list