Apache Server-Status forbidden

Kiekeboe100

Verified User
Joined
Apr 19, 2008
Messages
146
Location
Belgium
hello,

i'm trying to enable server-status and server-info on my apache server.

When i go to http://serverip/server-status i keep getting
"You don't have permission to access /server-status on this server."

I've put this in /etc/httpd/conf/httpd.conf:
<IfModule mod_status.c>
<Location /server-status>
SetHandler server-status
Order deny,allow
Allow from all
</Location>
</IfModule>

I also tried without <Ifmodule ..>

I also tried compiling apache with --enable-info and --enable-status but this doesn't change anything.
I'm using custombuild with apache2, php 5 and suPHP (don't know if suphp could do something about this??)

I've already looked like everywhere I think but I can't find a solution. On most forums the problem is solved by changin the Allow line, but this is correct in my case.

One more quick question, what's the difference between /etc/httpd/conf/httpd.conf and /etc/httpd/conf/http.conf_2.0. When I put "foobar" at the end of httpd.conf_2.0 the apache server still restarts, while in httpd.conf it doesn't, so my guess is that 2.0 isn't used?

thx,
Kiekeboe100
 
nooooooo, do you know how stupid i feel now? :p

well, i guess i should take a look at ALL configuration files from now on.
spent a whole day searching for nothing :(

thx :D

oh, and could you tell me the difference between http.conf and http.cond_2.0 ?
 
httpd.conf_2.0 is only used for Apache 2.0 and it's renamed to httpd.conf if you have Apache 2.0 :)
 
gadgetsguy,
If you have updated your services recently using custombuild you are likely to find the following snipped within /etc/httpd/conf/extra/httpd-info.conf
Code:
<Location /httpd-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from .example.com
</Location>

What i would be inclinded to do (some may disagree with this) would be to change it slightly...
Code:
<Location /private3-status>
    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
</Location>
This way, anyone can access the server-status handler but only if they know the correct address which, in this case, i have randomly set as;

http://your.ip/private3-status/

If you still can't access the server-status handler show us what your httpd/error_log says
 
Back
Top