1

Apache 2.2: RewriteMap, ProxyPass interpolation and Keep-Alive

view story
linux-howto

http://serverfault.com – I have an Apache httpd used as a SSL reverse proxy frontend for a lot of backends. I compute the name of the backend from the path given by the user. e.g: https://myhostname.com/myaccount translates to http://myaccount.myhostname.com For this I use a RewriteMap and RewriteRule with [P] flag on. Everything works fine. However I now need a persistent connection between the reverse proxy and the backend. I am well aware that keep-alive doesn't work with RewriteRule's [P] (http://httpd.apache.org/docs/current/en/rewrite/flags.html#flag_p - performance warning) therefore I tried to use ProxyPass (HowTos)