Apache Reverse Proxy

Enable mods

a2enmod proxy proxy_http

Edit Apache config

on your local machine

vi /etc/apache2/sites-enabled/000-default.conf
<VirtualHost *:80>

ProxyRequests Off

ProxyPass        /intranet/ http://www.intranet.lan/
ProxyPassReverse /intranet/ http://www.intranet.lan/

</VirtualHost>

Save and restart Apache

service apache2 restart

Open in browser

  • http://localhost/intranet/

Always note the slash at the end!