is at rambler-co.ru
Sun Jan 6 20:02:07 MSK 2008
On Sun, Jan 06, 2008 at 11:58:25AM +0100, Manlio Perillo wrote:
> 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
> enable the
> ProxyPreserveHost On
> 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.
Do you mean to use X-Forwarded-Host on nginx side as ngx_http_realip_module
> P.S.: X-Real-IP is a private nginx header, or is it used by some other
> web servers
X-Real-IP is nginx's and mod_accel's header.
More information about the nginx