github.com/krum110487/go-htaccess@v0.0.0-20240316004156-60641c8e7598/tests/data/apache_2_2_34/manual/mod/mod_status.html.en (about) 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 3 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head> 4 <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" /> 5 <!-- 6 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 7 This file is generated from xml source: DO NOT EDIT 8 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 9 --> 10 <title>mod_status - Apache HTTP Server Version 2.2</title> 11 <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> 12 <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> 13 <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" /> 14 <script src="../style/scripts/prettify.min.js" type="text/javascript"> 15 </script> 16 17 <link href="../images/favicon.ico" rel="shortcut icon" /><link href="http://httpd.apache.org/docs/current/mod/mod_status.html" rel="canonical" /></head> 18 <body> 19 <div id="page-header"> 20 <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p> 21 <p class="apache">Apache HTTP Server Version 2.2</p> 22 <img alt="" src="../images/feather.gif" /></div> 23 <div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> 24 <div id="path"> 25 <a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">Modules</a></div> 26 <div id="page-content"> 27 <div class="retired"><h4>Please note</h4> 28 <p> This document refers to a legacy release (<strong>2.2</strong>) of Apache httpd. The active release (<strong>2.4</strong>) is documented <a href="http://httpd.apache.org/docs/current">here</a>. If you have not already upgraded, please follow <a href="http://httpd.apache.org/docs/current/upgrading.html">this link</a> for more information.</p> 29 <p>You may follow <a href="http://httpd.apache.org/docs/current/mod/mod_status.html">this link</a> to go to the current version of this document.</p></div><div id="preamble"><h1>Apache Module mod_status</h1> 30 <div class="toplang"> 31 <p><span>Available Languages: </span><a href="../en/mod/mod_status.html" title="English"> en </a> | 32 <a href="../ja/mod/mod_status.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | 33 <a href="../ko/mod/mod_status.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | 34 <a href="../tr/mod/mod_status.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> 35 </div> 36 <table class="module"><tr><th><a href="module-dict.html#Description">Description:</a></th><td>Provides information on server activity and 37 performance</td></tr> 38 <tr><th><a href="module-dict.html#Status">Status:</a></th><td>Base</td></tr> 39 <tr><th><a href="module-dict.html#ModuleIdentifier">Module Identifier:</a></th><td>status_module</td></tr> 40 <tr><th><a href="module-dict.html#SourceFile">Source File:</a></th><td>mod_status.c</td></tr></table> 41 <h3>Summary</h3> 42 43 <p>The Status module allows a server administrator to find out 44 how well their server is performing. A HTML page is presented 45 that gives the current server statistics in an easily readable 46 form. If required this page can be made to automatically 47 refresh (given a compatible browser). Another page gives a 48 simple machine-readable list of the current server state.</p> 49 50 <p>The details given are:</p> 51 52 <ul> 53 <li>The number of worker serving requests</li> 54 55 <li>The number of idle worker</li> 56 57 <li>The status of each worker, the number of requests that 58 worker has performed and the total number of bytes served by 59 the worker (*)</li> 60 61 <li>A total number of accesses and byte count served (*)</li> 62 63 <li>The time the server was started/restarted and the time it 64 has been running for</li> 65 66 <li>Averages giving the number of requests per second, the 67 number of bytes served per second and the average number of 68 bytes per request (*)</li> 69 70 <li>The current percentage CPU used by each worker and in 71 total by Apache (*)</li> 72 73 <li>The current hosts and requests being processed (*)</li> 74 </ul> 75 76 <p>The lines marked "(*)" are only available if 77 <code class="directive"><a href="#extendedstatus">ExtendedStatus</a></code> 78 is <code>On</code>.</p> 79 </div> 80 <div id="quickview"><h3>Topics</h3> 81 <ul id="topics"> 82 <li><img alt="" src="../images/down.gif" /> <a href="#enable">Enabling Status Support</a></li> 83 <li><img alt="" src="../images/down.gif" /> <a href="#autoupdate">Automatic Updates</a></li> 84 <li><img alt="" src="../images/down.gif" /> <a href="#machinereadable">Machine Readable Status File</a></li> 85 </ul><h3 class="directives">Directives</h3> 86 <ul id="toc"> 87 <li><img alt="" src="../images/down.gif" /> <a href="#extendedstatus">ExtendedStatus</a></li> 88 <li><img alt="" src="../images/down.gif" /> <a href="#seerequesttail">SeeRequestTail</a></li> 89 </ul> 90 <ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div> 91 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> 92 <div class="section"> 93 <h2><a name="enable" id="enable">Enabling Status Support</a></h2> 94 95 96 <p>To enable status reports only for browsers from the example.com 97 domain add this code to your <code>httpd.conf</code> 98 configuration file</p> 99 <div class="example"><p><code> 100 <Location /server-status><br /> 101 SetHandler server-status<br /> 102 <br /> 103 Order Deny,Allow<br /> 104 Deny from all<br /> 105 Allow from .example.com<br /> 106 </Location> 107 </code></p></div> 108 109 <p>You can now access server statistics by using a Web browser 110 to access the page 111 <code>http://your.server.name/server-status</code></p> 112 </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> 113 <div class="section"> 114 <h2><a name="autoupdate" id="autoupdate">Automatic Updates</a></h2> 115 116 117 <p>You can get the status page to update itself automatically if 118 you have a browser that supports "refresh". Access the page 119 <code>http://your.server.name/server-status?refresh=N</code> to 120 refresh the page every N seconds.</p> 121 122 </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> 123 <div class="section"> 124 <h2><a name="machinereadable" id="machinereadable">Machine Readable Status File</a></h2> 125 126 127 <p>A machine-readable version of the status file is available by 128 accessing the page 129 <code>http://your.server.name/server-status?auto</code>. This 130 is useful when automatically run, see the Perl program in the 131 <code>/support</code> directory of Apache, 132 <code>log_server_status</code>.</p> 133 134 <div class="note"> 135 <strong>It should be noted that if <code class="module"><a href="../mod/mod_status.html">mod_status</a></code> is 136 compiled into the server, its handler capability is available 137 in <em>all</em> configuration files, including 138 <em>per</em>-directory files (<em>e.g.</em>, 139 <code>.htaccess</code>). This may have security-related 140 ramifications for your site.</strong> 141 </div> 142 143 </div> 144 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> 145 <div class="directive-section"><h2><a name="ExtendedStatus" id="ExtendedStatus">ExtendedStatus</a> <a name="extendedstatus" id="extendedstatus">Directive</a></h2> 146 <table class="directive"> 147 <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Keep track of extended status information for each 148 request</td></tr> 149 <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>ExtendedStatus On|Off</code></td></tr> 150 <tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>ExtendedStatus Off</code></td></tr> 151 <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config</td></tr> 152 <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr> 153 <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_status</td></tr> 154 <tr><th><a href="directive-dict.html#Compatibility">Compatibility:</a></th><td>ExtendedStatus is only available in Apache 1.3.2 and 155 later.</td></tr> 156 </table> 157 <p>This setting applies to the entire server, and cannot be 158 enabled or disabled on a virtualhost-by-virtualhost basis. 159 The collection of extended status information can slow down 160 the server.</p> 161 162 </div> 163 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> 164 <div class="directive-section"><h2><a name="SeeRequestTail" id="SeeRequestTail">SeeRequestTail</a> <a name="seerequesttail" id="seerequesttail">Directive</a></h2> 165 <table class="directive"> 166 <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Determine if mod_status displays the first 63 characters 167 of a request or the last 63, assuming the request itself is greater than 168 63 chars.</td></tr> 169 <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>SeeRequestTail On|Off</code></td></tr> 170 <tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>SeeRequestTail Off</code></td></tr> 171 <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config</td></tr> 172 <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr> 173 <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_status</td></tr> 174 <tr><th><a href="directive-dict.html#Compatibility">Compatibility:</a></th><td>Available in Apache 2.2.7 and later.</td></tr> 175 </table> 176 <p>mod_status with <code>ExtendedStatus On</code> 177 displays the actual request being handled. 178 For historical purposes, only 63 characters of the request 179 are actually stored for display purposes. This directive 180 controls whether the 1st 63 characters are stored (the previous 181 behavior and the default) or if the last 63 characters are. This 182 is only applicable, of course, if the length of the request is 183 64 characters or greater.</p> 184 185 <p>If Apache is handling <code>GET /disk1/storage/apache/htdocs/images/imagestore1/food/apples.jpg HTTP/1.1</code> mod_status displays as follows: 186 </p> 187 188 <table class="bordered"> 189 <tr> 190 <th>Off (default)</th> 191 <td>GET /disk1/storage/apache/htdocs/images/imagestore1/food/apples</td> 192 </tr> 193 <tr> 194 <th>On</th> 195 <td>orage/apache/htdocs/images/imagestore1/food/apples.jpg HTTP/1.1</td> 196 </tr> 197 </table> 198 199 200 </div> 201 </div> 202 <div class="bottomlang"> 203 <p><span>Available Languages: </span><a href="../en/mod/mod_status.html" title="English"> en </a> | 204 <a href="../ja/mod/mod_status.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | 205 <a href="../ko/mod/mod_status.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | 206 <a href="../tr/mod/mod_status.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> 207 </div><div class="top"><a href="#page-header"><img src="../images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">Comments</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div> 208 <script type="text/javascript"><!--//--><![CDATA[//><!-- 209 var comments_shortname = 'httpd'; 210 var comments_identifier = 'http://httpd.apache.org/docs/2.2/mod/mod_status.html'; 211 (function(w, d) { 212 if (w.location.hostname.toLowerCase() == "httpd.apache.org") { 213 d.write('<div id="comments_thread"><\/div>'); 214 var s = d.createElement('script'); 215 s.type = 'text/javascript'; 216 s.async = true; 217 s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; 218 (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); 219 } 220 else { 221 d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); 222 } 223 })(window, document); 224 //--><!]]></script></div><div id="footer"> 225 <p class="apache">Copyright 2017 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> 226 <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!-- 227 if (typeof(prettyPrint) !== 'undefined') { 228 prettyPrint(); 229 } 230 //--><!]]></script> 231 </body></html>