Lighttpd + mogadm check
Justin Huff
jjhuff at mspin.net
Tue May 1 20:49:25 UTC 2007
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