PDA

View Full Version : Apache Server-Status forbidden



Kiekeboe100
06-13-2008, 08:49 AM
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

smtalk
06-13-2008, 09:08 AM
Take a look at /etc/httpd/conf/extra/httpd-info.conf :)

Kiekeboe100
06-13-2008, 09:44 AM
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 ?

smtalk
06-13-2008, 09:48 AM
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
08-24-2009, 01:30 PM
I cannot get servername.com/server-status to work ...

it gives me a 403 error ..

Please help!

Rich-Boy
08-25-2009, 05:52 AM
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

<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...

<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