Home /  Monit /  Apache

Monit can be used from behind a proxy server.

Here is an example on how to configure Apache proxy in front of Monit. In this example Monit listens on and we configure Apache so Monit is accessible via this Apache proxy URL, http://apache.addr.ess/monit/

Create a file: /etc/apache2/conf-available/monit.conf:

    ProxyPass /monit/ 
    ProxyPassReverse /monit/ 
    <Location /monit/>
         Order deny,allow
         Allow from all
         ProxyPassReverseCookiePath / /monit/

You can enable it with "a2enconf monit"

Note: proxy and proxy_http mods are required in Apache. You can enable them with "a2enmod proxy" and "a2enmod proxy_http" .