mod_status

mod_status displays a page with internal statistics like amount of requests (total or per second), active connections etc.

status.css (option)

defines the stylesheet to use. available: unset (default), "blue" or any url you wish

status.css url;
Default value: not set

Example

status.css = "blue";

status.info (action)

returns the status page to the client

status.info mode;
mode
(optional) "short"

The “short” mode removes connection and runtime details (recommended for “public” status).

The status page accepts the following query-string parameters:

  • ?mode=runtime: shows the runtime details
  • format=plain: shows the “short” stats in plain text format

Example

If /server-status is requested, a page with lighttpd statistics is displayed.

setup {
	module_load "mod_status";
}

if req.path == "/server-status" {
	status.info;
}