1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
4 <TITLE>Apache module mod_status</TITLE>
6 <!-- Background white, links blue (unvisited), navy (visited), red (active) -->
15 <!--#include virtual="header.html" -->
16 <H1 ALIGN="CENTER">Module mod_status</H1>
18 <p>This module provides information on server activity and
22 HREF="module-dict.html#Status"
24 ><STRONG>Status:</STRONG></A> Base
27 HREF="module-dict.html#SourceFile"
29 ><STRONG>Source File:</STRONG></A> mod_status.c
32 HREF="module-dict.html#ModuleIdentifier"
34 ><STRONG>Module Identifier:</STRONG></A> status_module
37 HREF="module-dict.html#Compatibility"
39 ><STRONG>Compatibility:</STRONG></A> Available in Apache 1.1 and later.
45 <p>The Status module allows a server administrator to find out how well
46 their server is performing. A HTML page is presented that gives
47 the current server statistics in an easily readable form. If required
48 this page can be made to automatically refresh (given a compatible
49 browser). Another page gives a simple machine-readable list of the current
53 The details given are:
55 <LI>The number of children serving requests
56 <LI>The number of idle children
57 <LI>The status of each child, the number of requests that child has
58 performed and the total number of bytes served by the child (*)
59 <LI>A total number of accesses and byte count served (*)
60 <LI>The time the server was started/restarted and the
61 time it has been running for
62 <LI>Averages giving the number of requests per second,
63 the number of bytes served per second and the average number
64 of bytes per request (*)
65 <LI>The current percentage CPU used by each child and in total by
67 <LI>The current hosts and requests being processed (*)
70 A compile-time option must be used to display the details marked "(*)" as
71 the instrumentation required for obtaining these statistics does not
72 exist within standard Apache.
77 <li><a href="#extendedstatus">ExtendedStatus</a></li>
81 <H2>Enabling Status Support</H2>
83 To enable status reports only for browsers from the foo.com
84 domain add this code to your <CODE>access.conf</CODE> configuration file
86 <Location /server-status>
87 SetHandler server-status
95 You can now access server statistics by using a Web browser to access the
96 page <CODE>http://your.server.name/server-status</CODE>
98 Note that mod_status will only work when you are running Apache in
99 <A HREF="core.html#servertype">standalone</A> mode and not
100 <A HREF="core.html#servertype">inetd</A> mode.
102 <H3>Automatic Updates</H3>
103 You can get the status page to update itself automatically if you have
104 a browser that supports "refresh". Access the page
105 <CODE>http://your.server.name/server-status?refresh=N</CODE> to refresh the
106 page every N seconds.
107 <H3>Machine Readable Status File</H3>
108 A machine-readable version of the status file is available by accessing the
109 page <CODE>http://your.server.name/server-status?auto</CODE>. This is useful
110 when automatically run, see the Perl program in the <CODE>/support</CODE>
111 directory of Apache, <CODE>log_server_status</CODE>.
115 It should be noted that if <SAMP>mod_status</SAMP> is compiled into
116 the server, its handler capability is available in <EM>all</EM>
117 configuration files, including <EM>per</EM>-directory files
118 (<EM>e.g.</EM>, <SAMP>.htaccess</SAMP>). This may have
119 security-related ramifications for your site.
125 <H2><A NAME="extendedstatus">ExtendedStatus directive</A></H2>
126 <!--%plaintext <?INDEX {\tt ExtendedStatus} directive> -->
128 HREF="directive-dict.html#Syntax"
130 ><STRONG>Syntax:</STRONG></A> ExtendedStatus <EM>On|Off</EM><BR>
132 HREF="directive-dict.html#Default"
134 ><STRONG>Default:</STRONG></A> <CODE>ExtendedStatus Off</CODE><BR>
136 HREF="directive-dict.html#Context"
138 ><STRONG>Context:</STRONG></A> server config <BR>
140 HREF="directive-dict.html#Status"
142 ><STRONG>Status:</STRONG></A> Base<BR>
144 HREF="directive-dict.html#Module"
146 ><STRONG>Module:</STRONG></A> mod_status<BR>
148 HREF="directive-dict.html#Compatibility"
150 ><STRONG>Compatibility:</STRONG></A> ExtendedStatus is only available
151 in Apache 1.3.2 and later.
154 This directive controls whether the server keeps track of extended
155 status information for each request. This is only useful if the status module
156 is enabled on the server.
159 This setting applies to the entire server, and cannot be enabled or
160 disabled on a virtualhost-by-virtualhost basis.
163 <!--#include virtual="footer.html" -->