Apache2 - Configure reverse proxy

Configuration of a reverse proxy in Apache2. You can then host an application or server that is running on a certain port. This is added in a vhost.
1. Install the Apache2 modules

a2enmod proxy
a2enmod proxy_http

2. Add this to a vhost of your domain where you want to run the reverse proxy

ProxyPass / http://127.0.0.1:4000/
ProxyPassReverse / http://127.0.0.1:4000/


<Proxy http://127.0.0.1:4000/>
#All options for your proxy. You can also add an http auth
Require all granted
Options none
</Proxy>