Install and enable apache2 proxy modules

proxies all requests (“/”) to a single backend:

to point to the reverse proxy, instead of back to itself, the ProxyPassReverse directive is most often required:

Only specific URIs can be proxied

Example

ServerName example.net Documentroot /var/www/html/

ProxyPass “/” “http://www.example.com/" ProxyPassReverse “/” “http://www.example.com/"

</VirtualHost>