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 http://192.168.1.10:2812 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/ http://192.168.1.10:2812/ ProxyPassReverse /monit/ http://192.168.1.10:2812/ <Location /monit/> Order deny,allow Allow from all ProxyPassReverseCookiePath / /monit/ </Location>
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" .