Categorized | News

Getting feedback from your Apache webserver

Posted on 24 August 2002 by Demian Turner

Simply add the following lines to your httpd.conf file:

<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 11.22.33.44 # put your IP here so only you can view your server's status
</Location>

ExtendedStatus On

Then restart your server. With this modification you will be able to type http://www.yourdomain.com/server-status and view a full report of

  • how many connections are currently being processed
  • average CPU time for each connection
  • details on remote hosts currently connected to your server
  • total Kbs downloaded per connection

… to name a few. Apache prints a useful legend at the bottom of the page to help you decipher the voluminous information.

Bookmark and Share

4 Comments For This Post

  1. Anonymous Says:

    It was stated in the original article that you can access the Apache status as so,

    http://www.yourdomain.com/server_status

    this is incorrect… you need to use this URL:

    http://www.yourdomain.com/server-status

    – toodles –

  2. demian Says:

    duly updated, cheers 😉

  3. Anonymous Says:

    My server doesn\’t know the command:

    ExtendedStatus On

    What could be wrong?

  4. demian Says:

    First of all check that your server is Apache, second search the httpd.conf file for \’LoadModule\’ – you need the \’mod_status\’ i think it is, module loaded

Leave a Reply

Categories

Books

Demian Turner's currently-reading book recommendations, reviews, favorite quotes, book clubs, book trivia, book lists

Facebook