|
How it
works?
HSLAB HTTP Monitor
uses options of Apache web server to display its connection
statistics.
The statistical
information is obtained from the server using HTTP requests and
processed by the program for visualization.
Connection
statistics:
|
·
|
Server
connections diagram;
|
|
·
|
Server
connections tree with all virtual servers on this host;
|
|
·
|
Advanced
filtering options;
|
Besides, the
statistical information concerning directly the server and the
operating system is displayed:
|
·
|
Server version
and operation system type;
|
|
·
|
Time when the
server was last restarted;
|
|
·
|
Number of
requests for this time and full traffic;
|
|
·
|
Number of
requests per second, volume of information per second and average
volume of a request;
|
|
·
|
System processor
performance counters.
|
Before using the
program, you should enable your web server to respond to queries
about connection statistics.
ATTENTION! If you
are unfamiliar with the configuration of Apache web servers, ask
your system administrator to help you.
For 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!
For Apache
versions 2.2.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 you should
locate lines:
# Real-time info on
requests and configuration
#Include
conf/extra/httpd-info.conf
and uncomment second
line:
# Real-time info on
requests and configuration
Include
conf/extra/httpd-info.conf
Now need to proceed to a
configuration of the status. Open conf/extra/httpd-info.conf
file and find the lines:
#ExtendedStatus
On
Remove #
symbol:
ExtendedStatus
On
Check your domain
name:
<Location
/server-status>
SetHandler
server-status
Order deny,allow
Deny from all
Allow from
.yourdomain.com
</Location>
Or for
testing:
<Location
/server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from all
</Location>
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 "". 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!
Your web server
configuration is finished! Now you should save your changes and
restart your web the server.
See
also:
Register software
What is It
Module mod_status
Access Control by URL
Apache's Handler Use
Apache Performance Notes
Apache web
site
|