<Location /status> SetHandler server-status order deny,allow allow from all </Location>
But when I visit
404 Not Found is reported,why?
Because you've misconfigured something. What do your logs say about the cause of the 404? My first guess would be that
This can also happen when you have a .htaccess file in the document root and that file contains a RewriteRule, as is common with CMS pretty URLs. The
If this is the case, find the RewriteRule that is causing the problem, and add before it:
Addendum: also note that you can get a 403 if the DocumentRoot is not readable by the apache process at all, again because the server-status handler doesn't have a chance to work.
the docs are:
your location differs, I would not think it should matter, but try your location as /server-status instead of just /status.
However - I think Spud is right. you have not loaded that module.
If you are using mod_rewrite and vhost configuration you need to add a blank vhost entry at the top of the vhost configuration file e.g.
Then you can access it via the server IP address e.g. ip_address/server-status