manlio_perillo at libero.it
Sun Jan 6 13:58:25 MSK 2008
Igor Sysoev ha scritto:
> 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
> 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.
You are right, but for unknow (to me) reasons some people do not want to
directive in Apache.
And, quoting from Apache documentation
This option should normally be turned Off. It is mostly useful in
special configurations like proxied mass name-based virtual hosting,
where the original Host header needs to be evaluated by the backend server
Some web applications, as an example, explicitly requires that the user
set the base url so they can ignore the Host header.
P.S.: X-Real-IP is a private nginx header, or is it used by some other
Regards Manlio Perillo
More information about the nginx