Forum Moderators: phranque

Message Too Old, No Replies

Server-status (mod status) not working - keep getting 404 Not Found.

         

Zippy1970

11:19 am on Sep 28, 2008 (gmt 0)

10+ Year Member Top Contributors Of The Month



I'm running a webserver on Debian Etch with Apache 2. I have several virtual hosts defined.

I'm trying to get server status information through either

apache2ctl status

or

http://www.mydomain.com/server-status

I can't get either to work. I keep getting:

Not Found

The requested URL /server-status was not found on this server.
_________________________________________________________________

Apache/2.2.3 (Debian) PHP/5.2.0-8+etch11 mod_ssl/2.2.3
OpenSSL/0.9.8c Server at localhost Port 80

Here's the relevant part of my apache2.conf:

<IfModule mod_status.c>
# Allow server status reports generated by mod_status,
# with the URL of [servername...]
# Change the ".example.com" to match your domain to enable.
#
<Location /server-status>
SetHandler server-stat
Order deny,allow
Allow from all
</Location>
</IfModule>

The "Allow from all" is for testing purposes only. Once I have this working I'll set it to the proper domain. Anyway, I'm sure the module is loaded since if I change the "Allow from all" to "Deny from all", then instead of "Not Found" error, I get an "Access Denied" error.

So what am I doing wrong here?

Thanks in advance.

jdMorgan

2:38 pm on Sep 28, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Something missing, there:

SetHandler server-sta[b]tus[/b]

Jim

Zippy1970

4:01 pm on Sep 28, 2008 (gmt 0)

10+ Year Member Top Contributors Of The Month



Yes, I posted this message on another forum and they saw that too. I can't believe I wasted two days of work because of a typo! :o

Weird thing is this was already in Apache2's default configuration file which I simply uncommented so I have no idea where this typo came from.

Thanks!

jdMorgan

4:30 pm on Sep 28, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> Weird thing is this was already in Apache2's default configuration file which I simply uncommented so I have no idea where this typo came from.

If there's any indication that the file might have actually contained this incorrect line when you got it, please report this error to the people who manage the Apache+scripting 'package' you installed, and/or report it to apache.org; They'd be grateful to know about it so that they can fix it, and perhaps add an FAQ about it.

Jim

Zippy1970

11:39 pm on Sep 28, 2008 (gmt 0)

10+ Year Member Top Contributors Of The Month



Well, just to be sure I installed Debian Etch with Apache2 on a virtual machine and checked the default apache2.conf file. The typo wasn't there. So I guess I must have accidentally deleted those two characters myself although I have no idea when and how.