[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1335
  • Last Modified:

Server-status forbidden on Apache

I have mod_status compiled into my Apache 1.3.9 server but when I go to /docroot/server-status , I get a Forbidden message. I have this in my httpd.conf:

SetHandler mod_status
<Limit GET>
Order deny,allow
Deny all
Allow 192.168.0

Do I need the actual server-status folder in my document root?
1 Solution
Here's what I have in my conf...

LoadModule status_module /usr/lib/apache/1.3/mod_status.so
ExtendedStatus on

# Allow server status reports, with the URL of http://servername/status
# Change the ".nowhere.com" to match your domain to enable.

<Location /status>
SetHandler server-status

order deny,allow
deny from all
allow from

Hope that helps!

-- Brian
bcwhite's comment realy should be the answer ;)

sxn, if you have a look at the httpd.conf.default your apache installation created, you will find the above lines commented out...
From bcwhite's comment, you can take off the some of the last digits in the ip address: to be something like this: 192.168.1.   and have everyone with an IP beginning with that be allowed to access it.
Might be my mistake, but if you stated
order deny,allow
in your config file, than you should IMHO put the allow lines before the deny lines, otherwise everything will be denied.

Order deny,allow
allow from 192.168
deny from all

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now