Request URL /server-status or 404 Page Not Found Apache Error

In Apache web server, when an administrator wants to check the Apache server status with the command “apachectl status” or “service httpd fullstatus” at shell prompt, the following error may occur:

Not Found

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

If you request the Apache status from web page by viewing http://domain_name/server-status link location, a 404 page not found error will be returned by web browser.

There are several reasons why this problem can occurred. First thing to check is to ensure that the mod_status status handler is properly setup and loaded in httpd.conf configuration file. Using APXS, the following 2 lines must exist:

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

If the lines exist, the problem probably lies on virtual host declaration. As a side note, you can also check if the status handler is been activated to show more information (but will slow down a busy server) by locating the following line in httpd.conf (default to off):

ExtendedStatus On

For virtual host for server-status, ensure that the following line exists in your Apache configuration file:


SetHandler server-status
Order allow,deny
Deny from all
Allow from localhost

You can change the localhost to your domain name such as .example.com (including dot in front of domain) to allow access from domain address. Else localhost restrict access doesn’t allow public access to server-status, and only command shell access locally is possible.

Note that also if you use NameVirtualHost *:80 directive, or any *:port directive to run multiple name based virtual hosts, this configuration does not allow server-status on any of the publicly accessible addresses. The reason is that the first Virtual Host in the directive is considered the “Default Virtual Host”, and any unknown entries on the NameVirtualHost space whenever user or process attempts to access port 80 on any IP address, will go to this virtual host by default. Hence the 404 page not found error is returned. Furthermore the server-status configuration cannot be placed inside of a VirtualHost directive to be read from a full domain name.

There are 2s solution and workarounds for this scenario, either by making the server listen on an alternative port (such as port 8080), or allowing only internal or local access.

To change to another port, simply adding “Listen 8080″ to the configuration, and you can access the server status from external by using http://domain:8080/server-status in any web browser.

To allow only local access for commands such as ‘apachectl status’ or ’service httpd fullstatus’, simply switch each * to the actual IP address to work from, then accessing from localhost (127.0.0.1) will work.

For example, change from:

NameVirtualHost *:80

to

NameVirtualHost 10.0.0.3:80

Once configuration file is modified correctly, restart Apache HTTPD server.


2 Responses to “Request URL /server-status or 404 Page Not Found Apache Error”

  1. admin
    December 28th, 2007 02:23
    2

    You can still visit even though SSL certificate is expired. Just accept the security warning. Looks like your site is having configuration error on web server, probably virtual hosts or redirection error.

  2. LYNDA RIDLEY
    December 28th, 2007 01:37
    1

    Hi,
    I hope you dont mind me asking you, but i’ve been searching on Google for some help as i’m totally stuck – and then I found you !!
    My website went down about 3 weeks ago and I cant get in touch wih the man who set my site up for me.
    I’m trying to get onto my site and its just telling me that the certificate has expired, but I dont know what to do.
    I am desperate for help but am not too good on computers so dont understand all the ‘lingo’ and any advise would need to be in simple terms.
    I would be very very grateful if you could point me in the right direction.
    Thanks hopefully,
    Lynda

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

The requested URL / was not found on this server. - The requested URL was not found on this server. - The requested URL was not found on this server - server-status 404 - apache status url - The requested URL / was not found on this server - The requested URL /server-status was not found on this server. - The requested URL /server-status was not found on this server - The requested URL was not found on this server. - the requested url was not found on this server. apache - error, requested url was not found on this server - The requested URL /... was not found on this server - apache server-status 404 - apachectl status - Not Found The requested URL was not found on this server. - requested url not found - The requested URL is not supported - "The requested URL /server-status was not found on this server." - localhost not found apache - apache server-status virtual host - Not Found The requested URL / was not found on this server. - the requested url was not found on this server apache - The requested URL /WebApplication1/ was not found on this server - The requested URL / was not found on this server.Apache/2.2.12 (Ubuntu) Server - Not Found The requested URL /server-status was not found on this server. - apache server-status virtual hosts - Apache mod_status and page not found - apache not found error - apachectl status not found - CakePHP The requested URL /CakePHP/noticias was not found on this server. - ninja video he requested URL /video/46441 was not found on this server. - server-status not found - The requested URL / was not found on this server mijn domein - The requested URL /catalog/admin/function.main was not found on this server - the requested url was not found on this server. apache2 - The requested URL / was not found on this server vhost - The requested URL returned error: 404 solution - The requested URL /axis2/axis2-admin/login was not found on this server - The requested URL was not found on this server error 404 - "The requested URL / was not found on this server" - /axis2/axis2-admin/ was not found on this server - 404 the requested url was not found on this server - apache /server-status 404 - apache The requested URL / was not found on this server - apache http://localhost/server-status - apache virtualhost "The requested URL / was not found on this server." - apache server-status not working - cakephp windows "The requested URL" "was not found on this server" - erro firefox The requested URL /Redir Login was not found on this server. - localhost request was not found apache -