An appropriate representation of the requested resource could not be found on this server.

AutiCodes

Verified User
Joined
Jun 9, 2024
Messages
40
Hi, so i wanted to enable `server-status` from Apache.
I have in `/etc/httpd/conf/extra/httpd-info.conf` this:
```
<Location /server-status>
SetHandler server-status
</Location>
```
(i know, no auth is bad, just an demo)

now im getting:
1732224182047.png

How to fix this?
 
I have this and that is working:
Code:
<Location /server-status>
    SetHandler server-status
#    Require host .example.com
    Require ip 127
    Require ip 83.xx.xx.xx
</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.
#
ExtendedStatus On

#
# 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>
    SetHandler server-info
#    Require host .example.com
    Require ip 127
    Require ip 83.xx.xx.xx
</Location>

Maybe it's the require ip 127 you're missing?
 
I have this and that is working:
Code:
<Location /server-status>
    SetHandler server-status
#    Require host .example.com
    Require ip 127
    Require ip 83.xx.xx.xx
</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.
#
ExtendedStatus On

#
# 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>
    SetHandler server-info
#    Require host .example.com
    Require ip 127
    Require ip 83.xx.xx.xx
</Location>

Maybe it's the require ip 127 you're missing?
@Richard G are you not using password on the page which is added default by DirectAdmin since 2022 I guess?
 
are you not using password on the page
No. That was indeed changed couple of years ago. But passwords an be bruteforced. I've tried it once and either after an apache update the password did not work anymore or I wanted to prevent bruteforcing. Don't know for sure anymore, but I like ip access better anyway.
 
Depending on what results you're looking for. As root you have access to all system logfiles, not as normal user with SSH access normally.
Everything is also in logfiles, but ofcourse some things have an easier overview when looking at server-status or server-info page.
 
Back
Top