Lighttpd + mogadm check

Brad Fitzpatrick brad at danga.com
Wed Jun 20 19:23:35 UTC 2007


Committed.  Will be part of 2.17.

Thanks!


On Tue, 1 May 2007, Justin Huff wrote:

>
> With mogstored's auto-generated config, lighty responds with 404s to
> requests for /. Unfortunately, this was causing mogadm check to think
> that the host was down.
>
> I suppose I could add an index.html or something.  However, I just
> modified the generated config to include mod_status and set it's url
> to'/'.  That way you get some useful stats too:)
>
> Here's the patch:
>
> Index: server/lib/Mogstored/HTTPServer/Lighttpd.pm
> ===================================================================
> --- server/lib/Mogstored/HTTPServer/Lighttpd.pm (revision 926)
> +++ server/lib/Mogstored/HTTPServer/Lighttpd.pm (working copy)
> @@ -46,8 +46,9 @@
>   server.document-root = "$self->{docroot}"
>   server.port = $portnum
>   server.bind = "$bind_ip"
> -server.modules = ( "mod_webdav" )
> +server.modules = ( "mod_webdav", "mod_status" )
>   webdav.activate = "enable"
> +status.status-url  = "/"
>   };
>
>       exec $exe, "-D", "-f", $filename;
>
>
>


More information about the mogilefs mailing list