In recent versions of Apache this functionality comes with the mod_proxy module. See mod_proxy_add_forward.c.
For the opposite of "mpaf", see Thomas Eibner's reverse proxy add forward module