For example I want to set up a forward proxy to forward HTTP requests to a.com, b.com, c.com to a.mirror.com, b.mirror.com, c.mirror.com.
Currently I have to configure 3 vhosts as:
host-a:
ServerName a.com
ProxyPass / http://a.mirror.com/
host-b:
ServerName b.com
ProxyPass / http://b.mirror.com/
host-c:
ServerName c.com
ProxyPass / http://c.mirror.com/
Is there any way to rewrite the domain part of http request? as:
ProxyPassMatch http://(.*).com/ http://$1.mirror.com/
I wonder if I must do it by RewriteRules, but I don't know how to write the rule exactly and the performance of RewriteRule v. ProxyPass, but performance isn't a big problem.