Monitor through Apache Server-Status.
Apache server status required Apache Module mod_status. It will tell you:
The details given are:
- The number of worker serving requests
- The number of idle worker
- The status of each worker, the number of requests that worker has performed and the total number of bytes served by the worker (*)
- A total number of accesses and byte count served (*)
- The time the server was started/restarted and the time it has been running for
- Averages giving the number of requests per second, the number of bytes served per second and the average number of bytes per request (*)
- The current percentage CPU used by each worker and in total by Apache (*)
- The current hosts and requests being processed (*)
Basically, with this you can know how many process your apache handle and what IP are requesting to your server, as well as what the virtual server ( if you are running any ).
Server-status is disabe by default. To enable it, go to your httpd.conf (/etc/apache2/apache2.conf or /etc/httpd/conf/httpd.conf …… depends what Linux you running..):
put this in:
ExtendedStatus On
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
Note: server-status might be already on your apache config but comment by default.
Please note I only allow localhost to access to /server-status, so outsider will not able to view your server-status remotely.
To view the server-status, you are require to access to your server, if you have the x-windows installed, you can use the graphical browser to view it. or if you can view it from text based browser : - links.
Links is not installed on default package, to install (example for ubuntu) :
apt-get install links
Once you installed Links, type “links” access to this application.
enter the url: http://localhost/server-status

ok..it will show you something like this:

so it show you all the running process, from destination (client IP) to target (virtual host on your server), request url ..etc..
Also See:
No user commented in " Howto: Monitor Your Apache Web Server "
Follow-up comment rss or Leave a TrackbackLeave A Reply