> EC> do you setup virtual hosts on the backend server? Different IPs, or
> EC> different ports? Or just a flat url space, using mod_rewrite on the
> EC> front-end to translate the urls?
>
> I think I posted this example earlier. This is just a snippet of the
> relevant portions of the front/back end virtual configs. It is not a
> cookie-cutter example!
>
> Basically, I use unique port number virtuals on the back-ends (so I
> can redirect to localhost:XXXX bypassing some networking cruft) and
> name-based virtuals on the front end, though any technique on the
> front end will do.
>
> I set "Port 80" on the back-end so that any redirects don't get sent
> directly to the back-end. Sometimes I also bind tightly to address
> 127.0.0.1 to prevent any outside connections when the two are on the
> same box.
Vivek,
Thanks a lot for your input.
> ###########
> #
> # Get "real" remote IP address from Proxy and set it as our connection's
> # IP address so logging, etc., use that IP address. Uses mod_perl handler.
> # For some reason, must be set per-virtual host.
> #
> ###########
>
> PerlPostReadRequestHandler My::ProxyRemoteAddr
This is no longer necessary with mod_perl >= 1.22, i.e. it can be put
in the main server config and will be inherited (merged) in virtual hosts.
--
Eric