Apache as reverse proxy for multiple destinations and one default destination
Wrap your ProxyPass references in a <VirtualHost>
definition, like this:
<VirtualHost *:*>
ProxyPreserveHost On
ProxyPass / http://192.168.111.2/
ProxyPassReverse / http://192.168.111.2/
ServerName hostname.example.com
</VirtualHost>
Create two separate ones with the ServerNames you want, then another without ServerName or the Proxy options defined (just DocumentRoot
). Put that one last.
More info here.