monit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reverse proxy support


From: Martin Pala
Subject: Re: Reverse proxy support
Date: Fri, 02 Feb 2007 11:10:23 +0100
User-agent: Thunderbird 1.5.0.9 (X11/20061222)

support added and tested ...

Thanks :)
Martin

Josh Kelley wrote:
It would be useful if Monit supported being accessed through a reverse
proxy in Apache 2.  This would avoid requiring that an additional port
be opened by the firewall, would let access to Monit be controlled by
Apache's more flexible authentication mechanisms, and could offer full
access to Monit's web interface (unlike monit.php in the contrib
directory).

The main reason that using Monit behind a reverse proxy doesn't work
is because Monit uses absolute URLs everywhere.  The attached patch
modifies it to use relative URLs; this still works when Monit is
accessed directly but also permits it to work behind a reverse proxy.

With the patch applied, you can access through Apache using an Apache
config similar to the following:

ProxyPass /monit/ http://localhost:2812/
ProxyPassReverse /monit/ http://localhost:2812/

<Location /monit/>
       # Insert authentication directives here
</Location>

Josh Kelley


------------------------------------------------------------------------

_______________________________________________
monit-dev mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/monit-dev




reply via email to

[Prev in Thread] Current Thread [Next in Thread]