I am trying to set up an Apache conf file that will allow me to reverse proxy two (or more) different domains. Here's what I have:
In my example below, I am trying to proxy inbound requests as follows:
requests for www.abc.com
are proxied to www.abcdest.com
requests for www.def.com
are proxied to www.defdest.com
RewriteRule ^(.*) http://www.abcdest.com$1 [P]
RewriteRule ^(.*) http://www.defdest.com$1 [P]
correctly proxies www.abcdest.com
However, when I go to www.def.com
, I get www.abcdest.com
I've been trying to figure this out for a couple of days...
Any help would be greatly appreciated.