Project

General

Profile

Actions

Feature #418

closed

mod_proxy should send the X-Forwarded-Host header to the proxied server

Added by Anonymous over 19 years ago. Updated almost 8 years ago.

Status:
Fixed
Priority:
Normal
Category:
mod_proxy
Target version:
ASK QUESTIONS IN Forums:

Description

Apache's mod_proxy adds a X-Forwarded-Host header when it makes a request to the proxied server; the header contains a copy of the original Host header, and allows the proxied server to see what its public address is.

Many web application frameworks, including Rails as I write this, look for this header in order to behave correctly.

It would be wonderful if lighttpd's mod_proxy could also send this header.

-- stephen_purcell

Added by gstrauss about 8 years ago

Revision 41152667 (diff)

[mod_proxy] set X-Forwarded-Host (fixes #418)

lighttpd appends the request "Host" to the non-standard header "X-Host"
when acting as a reverse proxy. This patch additionally appends "Host"
to the non-standard header "X-Forwarded-Host" to match the convention in
some other web servers

x-ref:
"mod_proxy should send the X-Forwarded-Host header to the proxied server"
https://redmine.lighttpd.net/issues/418

Actions

Also available in: Atom