Apache2 - Configure reverse proxy

Revision as of 17:00, 25 March 2020 by Ardaut (talk | changes) (Created page with "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. <br> 1. Install the Apache...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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>