3 <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
5 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
6 This file is generated from xml source: DO NOT EDIT
7 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
9 <title>mod_status - Apache HTTP Server</title>
10 <link href="../style/manual.css" type="text/css" rel="stylesheet">
15 <img alt="[APACHE DOCUMENTATION]" src="../images/sub.gif"><h3>Apache HTTP Server Version 2.0</h3>
17 <h1 align="center">Apache Module mod_status</h1>
18 <table cellspacing="1" cellpadding="0" bgcolor="#cccccc">
21 <table bgcolor="#ffffff">
23 <td><span class="help">Description:</span></td><td>
24 <description>This module provides information on server activity and
25 performance.</description>
29 <td><a href="module-dict.html#Status" class="help">Status:</a></td><td>Base</td>
32 <td><a href="module-dict.html#ModuleIdentifier" class="help">Module Identifier:</a></td><td>status_module</td>
35 <td><a href="module-dict.html#Compatibility" class="help">Compatibility:</a></td><td>
36 <compatibility>Available in Apache 1.1 and later</compatibility>
50 <td bgcolor="#e0e5f5">
51 <strong>Warning:</strong> This document has not been updated
52 to take into account changes made in the 2.0 version of the
53 Apache HTTP Server. Some of the information may still be
54 relevant, but please use it with care.
61 <p>The Status module allows a server administrator to find out
62 how well their server is performing. A HTML page is presented
63 that gives the current server statistics in an easily readable
64 form. If required this page can be made to automatically
65 refresh (given a compatible browser). Another page gives a
66 simple machine-readable list of the current server state.</p>
69 <p>The details given are:</p>
74 <li>The number of children serving requests</li>
77 <li>The number of idle children</li>
80 <li>The status of each child, the number of requests that
81 child has performed and the total number of bytes served by
85 <li>A total number of accesses and byte count served (*)</li>
88 <li>The time the server was started/restarted and the time it
89 has been running for</li>
92 <li>Averages giving the number of requests per second, the
93 number of bytes served per second and the average number of
94 bytes per request (*)</li>
97 <li>The current percentage CPU used by each child and in
98 total by Apache (*)</li>
101 <li>The current hosts and requests being processed (*)</li>
105 A compile-time option must be used to display the details
106 marked "(*)" as the instrumentation required for obtaining
107 these statistics does not exist within standard Apache.
112 <a href="#extendedstatus">ExtendedStatus</a>
115 <h2>Enabling Status Support</h2>
118 To enable status reports only for browsers from the foo.com
119 domain add this code to your <code>httpd.conf</code>
122 <table cellpadding="10">
124 <td bgcolor="#eeeeee"><code>
125 <Location /server-status><br>
126 SetHandler server-status<br>
131 Allow from .foo.com<br>
139 <p>You can now access server statistics by using a Web browser
141 <code>http://your.server.name/server-status</code>
148 <td bgcolor="#e0e5f5">
149 <p>Note that <code><a href="mod_status.html">mod_status</a></code> will only work
150 when you are running Apache in <a href="core.html#servertype">standalone</a> mode and not
151 <a href="core.html#servertype">inetd</a> mode.</p>
157 <h2>Automatic Updates</h2>
160 You can get the status page to update itself automatically if
161 you have a browser that supports "refresh". Access the page
162 <code>http://your.server.name/server-status?refresh=N</code> to
163 refresh the page every N seconds.
165 <h2>Machine Readable Status File</h2>
168 A machine-readable version of the status file is available by
170 <code>http://your.server.name/server-status?auto</code>. This
171 is useful when automatically run, see the Perl program in the
172 <code>/support</code> directory of Apache,
173 <code>log_server_status</code>.
178 <td bgcolor="#e0e5f5">
179 <strong>It should be noted that if <code><a href="mod_status.html">mod_status</a></code> is
180 compiled into the server, its handler capability is available
181 in <em>all</em> configuration files, including
182 <em>per</em>-directory files (<em>e.g.</em>,
183 <code>.htaccess</code>). This may have security-related
184 ramifications for your site.</strong>
193 <a name="ExtendedStatus">ExtendedStatus</a> <a name="extendedstatus">Directive</a>
195 <table cellpadding="1" cellspacing="0" border="0" bgcolor="#cccccc">
198 <table width="100%" bgcolor="#ffffff">
200 <td><strong>Description: </strong></td><td>This directive controls whether the server keeps track of
201 extended status information for each request. This is only
202 useful if the status module is enabled on the server.</td>
205 <td><a href="directive-dict.html#Syntax" class="help">Syntax:</a></td><td>
206 <syntax>ExtendedStatus On|Off</syntax>
210 <td><a href="directive-dict.html#Default" class="help">Default:</a></td><td><code>ExtendedStatus Off</code></td>
213 <td><a href="directive-dict.html#Context" class="help">Context:</a></td><td>server config</td>
216 <td><a href="directive-dict.html#Status" class="help">Status:</a></td><td>Base</td>
219 <td><a href="directive-dict.html#Module" class="help">Module:</a></td><td>mod_status</td>
222 <td><a href="directive-dict.html#Compatibility" class="help">Compatibility:</a></td><td>ExtendedStatus is only available in Apache 1.3.2 and
231 <p>This setting applies to the entire server, and cannot be
232 enabled or disabled on a virtualhost-by-virtualhost basis.</p>
236 <h3 align="center">Apache HTTP Server Version 2.0</h3>
237 <a href="./"><img alt="Index" src="../images/index.gif"></a><a href="../"><img alt="Home" src="../images/home.gif"></a>