summaryrefslogtreecommitdiff
path: root/doc/status.txt
blob: c64e9936854c26f83ed42e97b408862b5a4ab2a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
=============
Server Status
=============

------------------
Module: mod_status
------------------

:Author: Jan Kneschke
:Date: $Date: 2004/11/03 22:26:05 $
:Revision: $Revision: 1.2 $

:abstract:
  mod_status displays the server's status and configuration
  
.. meta::
  :keywords: lighttpd, server status
  
.. contents:: Table of Contents

Description
===========

The server status module generates the status overview of the webserver. The
information covers:

- uptime
- average throughput
- current throughput
- active connections and their state

By default the status page is disabled to hide internal information from
unauthorized users. ::

  status.status-url = "/server-status"

If you want to open the status page just for users from the local network
cover it in a conditional. ::

  $HTTP["remoteip"] == "10.0.0.0/8" {
    status.status-url = "/server-status"
  }

Or require authorization: ::
  
  auth.require = ( "/server-status" => 
    ( "realm" ... ) )


Output Format
-------------

By default a nice looking HTML page is generated. If you append ?auto to the
status-url you can get a text version which is simpler to parse. ::

  Total Accesses: 1234
  Total kBytes: 1043
  Uptime: 1234
  BusyServers: 123

Total Accesses is the number of handled requests, kBytes the overall outgoing 
traffic, Uptime the uptime in seconds and BusyServers the number of currently
active connections.

The naming is kept compatible to Apache even if we have another concept and
don't start new servers for each connection.


Options
=======

status.status-url

  relative URL which is used to retrieve the status-page

  Default: unset

  Example: status.status-url = "/server-status"

status.enable-sort
  
  add JavaScript which allows client-side sorting for the connection overview

  Default: enable

status.config-url

  relative URL for the config page which displays the loaded modules

  Default: unset

  Example: status.status-url = "/server-config"

status.statistics-url

  relative URL for a plain-text page containing the internal statistics

  Default: unset

  Example: status.status-url = "/server-stats"