I'm trying to set up a proxy front-end server to my heavy mod_perl
backend, and I'm having some trouble with name-based virtual hosts.
Basically, with a rule like "RewriteRule ^/(.*) http://10.36.1.10/$1 [P]",
the proxy sends an http request to 10.36.1.10:80, but setting the Host:
http header to "10.36.1.10", not what the client supplied.
The mod_perl guide suggests having <VirtualHost> statements on the
front-end, and redirecting each hostname to a different port on the
backend. This is inconvenient for me, because I'd have to change the
app logic on the backend (which currently uses $r->header_in("Host")
directly).
Ideally, what I'd like is to have the front-end server not check or
touch Host: at all, and pass it unaltered to the backend, which knows
what to do with it. Does anyone know of a way to do this?
If that's not possible, I'd settle for the backend getting it in a new
header (eg. X-Original-Host), using an approach similar to
mod_proxy_add_forward.c.
--
Roger Espel Llima, [EMAIL PROTECTED]
http://www.iagora.com/~espel/index.html