I have a case where I need to proxy pass a domain (domain1.com) to a different domain (domain2.com) hosted on a shared ip address (192.168.168.168), but domain2.com DNS is pointed other than the shared ip address, so domain2.com cannot be used as the proxy pass, only the shared ip address.
Since the shared ip address has multiple hostnames, is there a domain or hostname configuration option that can be used with proxypass to force the virtual host lookup on the other side? For example, using this apache conf file to proxy domain1.com to 192.168.168.168.
#Apache Reverse Proxy
SSLProxyEngine on
<Location />
ProxyPass http://192.168.168.168/
ProxyPassReverse http://192.168.168.168/
</Location>
Are there any changes that can be made to tell what domain to lookup on that ip?