[Webinar] Streamline your web hosting managementRegister Today

x
  • 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:

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

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

httpd.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 192.168.1.1
</Location>

Hope that helps!

-- Brian
0
 
gunny051499Commented:
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...
0
 
TYoungCommented:
From bcwhite's comment, you can take off the some of the last digits in the ip address: 192.168.1.1 to be something like this: 192.168.1.   and have everyone with an IP beginning with that be allowed to access it.
0
 
wouterwCommented:
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
0

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