Home /  Monit /  Nginx

Monit can be used from behind a proxy server.

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

    location /monit/ {
        rewrite ^/monit/(.*) /$1 break;
        proxy_ignore_client_abort on;
        proxy_pass   http://192.168.1.10:2812; 
        proxy_redirect  http://192.168.1.10:2812 /monit; 
        proxy_cookie_path / /monit/;
    }