Online home | GitHub

cpollet.me

back to posts list

Use apache2 mod_proxy and mod_proxy_http to forward requests to another port

Published on 06 Mar 2014

First, enable mod proxy and proxy_http:

a2enmod proxy proxy_http

Then, add the required configuration to your apache2 config files:

ProxyPass /app http://example.com:8080/app
ProxyPassReverse /app http://example.com:8080/app

Don’t forget to restart the server :)

Source:

Last generated on 18 Nov 2016