Support / KnowledgeBase

 
Search the KnowledgeBase Search

Enabling the server-status page on your (dv)

  • Applies to: All (dv)

  • Difficulty: Medium

  • Time needed: 10 minutes

  • Tools needed: SSH, root access, vi knowledge

 
  • Applies to: All (dv)
    • Difficulty: Medium
    • Time Needed: 10
    • Tools Required: SSH, root access, vi knowledge

Overview

The status module allows a server administrator to find out how well their server is performing. A HTML page is presented that gives the current server statistics in an easily readable form. For more information on this apache module, please see http://httpd.apache.org/docs-2.0/mod/mod_status.html.

Instructions

On your (dv) Dedicated-Virtual Server, you can enable this section in your httpd.conf file, located at /etc/httpd/conf/httpd.conf.

 

#
# Allow server status reports, with the URL of
http://mt-example.com/server-status
# Change the ".your-domain.com" to match your domain to enable.
#
# ExtendedStatus on
#<Location /server-status>
# SetHandler server-status
# Order deny,allow
# Deny from all
# Allow from IP.AD.DR.ESS
#</Location>

 

  1. Remove the comment character ("#") in front of each line.  Pay special attention to the "Allow from" line.  Here you will put the IP address that you will be accessing this page from.  It is highly suggested to just use your IP address that you are connecting from.  Optionally you might also want to consider password-protecting this page (see below):
  2. You can also make this page password-protected using something similar to the following:

     

    ExtendedStatus on
    <Location /server-status>
    SetHandler server-status
    AuthType basic
    AuthName "Apache status"
    AuthUserFile /etc/httpd/conf/server-status_htpasswd
    Require valid-user
    </Location>
    
  3. After either method, you will need to restart the apache webserver:
     /etc/init.d/httpd restart
  4. Navigate to your website at http://mt-example.com/server-status and you should see a page similar to:1015_1b

User Comments

No visitor comments posted. Post a comment
Fields marked with an asterisk(*) are required. Comment on this article
Fill out the form below if you would like to comment on this article.
 
 
 

(code is not case-sensitive)
 
Submit
 
 

Continue