faqts : Computers : Internet : Web Servers : Apache

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

59 of 67 people (88%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

Every time I check the server status with the command apachectl status -- Error message> The requested URL /server-status was not found on this server

May 5th, 2001 09:49
Christoph Vogel, Bharti Moorjani,


This is a common problem if you installed Apache the first time and 
didn't activate the appropriate status handler in httpd.conf.
At first you should be sure you loaded mod_status. Using APXS you must 
have two lines like:

LoadModule status_module /path/to/apache/modules/mod_status.so
AddModule mod_status.c

Second part is to activate the status handler.

ExtendedStatus On

...is an optional setting configuring mod_status to show some more 
information. A good thing (but defaults to off). Next and important 
thing is to define:

<Location /server-status>
 SetHandler server-status
 Order allow,deny
 Allow from localhost
</Location>

Using these settings access is restricted to localhost. Don't allow 
public access as server-status gives some
security related system information.