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