Unable to access /server-status with mod_status module

TheLunny

Verified User
Joined
Dec 10, 2007
Messages
6
I've problems trying to enable the mod_status module on my Apache server. I've inserted the following to my httpd.conf but did not manage to get it working. Been trying for sometime already. No idea what's wrong. Anyone can enlighten me on how to setup the /server-status ?

ExtendedStatus On
<Location /server-status>
SetHandler server-status
</Location>


I've also tried inserting this instead,

<Location /server-status>
SetHandler server-status

Order Deny,Allow
Deny from all
Allow from <my ip address>
</Location>


All i get when i access the page is,

Forbidden

You don't have permission to access /server-status on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
 
vi /etc/httpd/conf/extra/httpd-info.conf

Code:
#
# Get information about the requests being processed by the server
# and the configuration of the server.
#
# Required modules: mod_status (for the server-status handler),
#                   mod_info (for the server-info handler)

#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.

<Location /server-status>
    [B][COLOR="Red"]SetHandler server-status[/COLOR][/B]
#    Order deny,allow
#    Deny from all
#    Allow from
</Location>

#
# 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.
#
[COLOR="Red"]ExtendedStatus On[/COLOR]

#
# Allow remote server configuration reports, with the URL of
#  http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
<Location /server-info>
    [B][COLOR="Red"]SetHandler server-info[/COLOR][/B]
#    Order deny,allow
#    Deny from all
#    Allow from 
</Location>

[root@apache]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]

 
Back
Top