Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am running 10.7.4. I have Apache up and running. It serves html and php as expected. I was playing around with apachectl and wanted to see what fullstatus did. The complete command is:

 $ apachectl fullstatus

The response on the command line is:

Go to http://localhost:80/server-status in the web browser of your choice.
Note that mod_status must be enabled for this to work.

A apachectl -t -D DUMP_MODULES | grep status shows:

Syntax OK
 status_module (shared)

Upon doing that I get a 403 saying I don't have access to server-status. In looking at the access log I see:

localhost - - [29/May/2012:17:36:53 +0800] "GET /server-status HTTP/1.1" 403 324

error log:

[Tue May 29 17:36:53 2012] [error] [client ::1] client denied by server configuration: /Library/WebServer/Documents/server-status

I pored over the /etc/apache/httpd.conf but couldn't find anything.

How do I configure Apache so that I can view the server-status?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

In order to handle requests to /server-status with mod_status, you will need the following lines somewhere in your configuration:

<Location /server-status>
  SetHandler server-status
</Location>

Don't forget to restrict access to localhost or other trusted hosts using Allow/Deny or the newer Require directives.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.