LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-27-2008, 07:18 PM   #1
Zippy1970
Member
 
Registered: Sep 2007
Posts: 119

Rep: Reputation: 17
Question Server-status (mod_status) not working - keep getting 404 Not Found.


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

Code:
apache2ctl status
or

Code:
http://www.mydomain.com/server-status
I can't get either to work. I keep getting:

Code:
                                   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:

Code:
<IfModule mod_status.c>
    # Allow server status reports generated by mod_status,
    # with the URL of http://servername/server-status
    # 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.
 
Old 09-28-2008, 08:49 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Quote:
SetHandler server-stat
If it's not a typo, the correct syntax is
Code:
SetHandler server-status
 
Old 09-28-2008, 09:31 AM   #3
Zippy1970
Member
 
Registered: Sep 2007
Posts: 119

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by bathory View Post
If it's not a typo, the correct syntax is
Code:
SetHandler server-status
OMFG. I just wasted a few days on this! This was the default apache2.conf I edited so I have no idea where that typo came from. I only uncommented the lines and afaik, I did not change anything else.

Anyway, thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
404 not found? jabos Mandriva 6 06-21-2007 11:48 AM
Apache error: 404 Not Found, why? cucolin@ Ubuntu 3 08-14-2006 11:01 AM
apt-get 404 Not Found error Steve Riley Ubuntu 3 06-21-2006 06:31 PM
Tomcat Status 404 issue FirmbIT Linux - Software 18 04-22-2006 10:30 AM
404 page not found Darthomir General 2 03-30-2004 09:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration