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: Mon, 29 Jan 2007 19:59:38 +0100
User-agent: Thunderbird 1.5.0.9 (X11/20061222)

Thanks for patch :)

The new monit version will be released most probably soon, so i prefer to add just bugfixes for now.

We may add your patch to the next monit release.

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]