HSLAB HTTP Monitor
How to configure Apache versions 1.3.x - 2.0.x ?
First of all, you should be convinced, that your server uses the mod_status module. For this purpose open in your text editor a web server configuration file httpd.conf. Find the section loading modules and check up, whether there is there a line:
LoadModule status_module modules/mod_status.so
This line can differ a little depending on the version of your server and
operation system. If this line has ahead a symbol # that remove it.
Now need to proceed to a
configuration of the status. Find the lines:
# ExtendedStatus controls whether Apache will generate
"full" status
# information (ExtendedStatus On) or just basic information
(ExtendedStatus
# Off) when the "server-status" handler is called. The
default is Off.
#
#ExtendedStatus On
Also remove a symbol # in line #ExtendedStatus On. In result this section should look like:
# ExtendedStatus controls whether Apache
will generate "full" status
# information (ExtendedStatus On) or just basic
information (ExtendedStatus
# Off) when the "server-status" handler is
called. The default is Off.
#
ExtendedStatus On
Further we
should to install the status handler. Find the lines:
# Allow server status reports, with the URL of
http://servername/server-status
# Change the ".yourdomain.com" to match your
domain to enable.
#
#<Location/server-status>
# SetHandler
server-status
# Order deny, allow
# Deny from all
# Allow from
.yourdomain.com
#</Location>
Also remove superfluous symbols #. Now the section should look so:
# Allow server status reports, with the URL
of http://servername/server-status
# Change the ".yourdomain.com" to match
your domain to enable.
#
<Location/server-status>
SetHandler
server-status
Order deny, allow
Deny from all
Allow from
.yourdomain.com
</Location>
Line "Allow from .yourdomain.com" enables queries of the status from any computer of your domain(yourdomain.com). If you want to limit access only for the your computer, you should write "Allow from yourcomputer.yourdomain.com". Where your computer is a name of your computer and yourdomain - a name of your domain. Also you can write "Allow from all". In this case, the statistics of your wed server will be accessible from any computer in the Internet. We urgently do not recommend so to do, you should have very serious reason for this purpose!
Tags: -
Related entries:
Last update: 2006-12-02 11:07
Author: Oleg
Revision: 1.0