Apache server-status

Posted on 2011-05-10
Last Modified: 2012-05-11
When I enter

rcapache2 server-status

on the command line I get:
Object not found!

The requested URL was not found on this server. If you entered the URL manually
please check your spelling and try again.

If you think this is a server error, please contact the webmaster.

Error 404

Tue May 10 09:12:00 2011
Apache/2.2.3 (Linux/SUSE)

What do I have to configure to have the status displayed?

Question by:netslt
    LVL 2

    Expert Comment

    Check this link out

    alternatively you can also check the service as

    # /etc/init.d/apache2 status
    LVL 11

    Expert Comment


    First of all check that the server is running or not?

    Tushar Kaskhedikar

    Author Comment

    @kaskhedikar_tushar: sure the server runs ;-)
    LVL 5

    Expert Comment

    Make sure that mod_status is loaded and on somewhere in httpd.conf or an included configuration file:

    LoadModule status_module /path/to/

    Optionally enable extended status:
    <IfModule mod_status.c>
    ExtendedStatus On

    Decide where you want to access the status page. You can add it to the server config or a specific vhost and the URL can be configured as well. For simplicity, lets assume you have one vhost and want to access Add this to that vhost:

    <Location /server-status>
      SetHandler server-status

    It's SetHandler that does the magic. It makes sure that whenever the Location is requested, the output of mod_status is shown. You can add Allow/Deny rules to make sure only you can see what's going on, but that's a different subject.

    Author Comment


    I already had that in my virtual server.conf:

    <Location /server-status>
    SetHandler server-status

    Order Deny,Allow
    Deny from all
    Allow from all

    In my /etc/apache2/mod_status.conf I have

    # Allow server status reports generated by mod_status,
    # with the URL of http://servername/server-status
    # see
    <IfModule mod_status.c>
        <Location /server-status>
            SetHandler server-status
            Order deny,allow
            #Deny from all
    Allow from all

    But when I call

    I get a 404 error, so something must be missing.

    Thanks for helping...
    LVL 5

    Accepted Solution

    Make sure you call (no slash at the end)

    Use apache2ctl on the commandline to find out if the mod was actually loaded:
    apache2ctl -t -D DUMP_MODULES  
    although if it wasn't Apache should not even start because of the SetHandler in server.conf

    Also, nrip_cheema's post shows that with rcapache2 you should call 'status' instead of 'server-status' which is a little confusing.

    Author Comment

    Loaded Modules:
     core_module (static)
     mpm_prefork_module (static)
     http_module (static)
     so_module (static)
     actions_module (shared)
     alias_module (shared)
     auth_basic_module (shared)
     authn_file_module (shared)
     authz_host_module (shared)
     authz_groupfile_module (shared)
     authz_default_module (shared)
     authz_user_module (shared)
     authn_dbm_module (shared)
     autoindex_module (shared)
     cgi_module (shared)
     dir_module (shared)
     env_module (shared)
     expires_module (shared)
     include_module (shared)
     log_config_module (shared)
     mime_module (shared)
     negotiation_module (shared)
     setenvif_module (shared)
     ssl_module (shared)
     suexec_module (shared)
     userdir_module (shared)
     php5_module (shared)
     rewrite_module (shared)

    Seems it is not loaded.

    Where do I have to change something so it will be loaded?

    Regarding using status or server-status with rcapache2: on SuSE "status" show wethere the server is running or not:

     rcapache2 status
    Checking for httpd2:                                                  running

    so thats why server-status has to be used....

    Author Comment

    I finally found out what was missing, I had to call

    a2enmod mod_status

    after that everything was working.

    thanks for your help

    Author Closing Comment

    the apache2ctl -t -D DUMP_MODULES command helped me to find the module was not loaded, so i just had to search on how to load it on a suse system

    Author Comment

    By the way, its possible to call /server-status/ with a slash at the end, works...

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
    Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now