Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I enabled the following on httpd.conf:

ExtendedStatus On

LoadModule status_module modules/

and also:

NameVirtualHost *:80

<VirtualHost *:80>

  DocumentRoot /prod/html

  RewriteEngine on
  RewriteCond %{HTTP_HOST} .*$
  RewriteRule /(.*)$1 [R,L]

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


when running lynx http://localhost/server-status get the following message: You don't have permission to access /server-status on this server.

I don't see anything related to /server-status in my /etc/httpd folder these are the folders I have under /etc/httpd:

logs -> ../../var/log/httpd
modules -> ../../usr/lib/httpd/modules
run -> ../../var/run**

any idea why I get the "permission denied" error? do I need to install another package for get it? Thanks!! Dotan.

share|improve this question
Maybe there is something wrong with VirtualHosts' configuration. It's hard to say without looking at full dump of Apache configuration. Did you restart Apache? Is there anything in ErrorLog? – 0xFF Dec 27 '12 at 19:32
This is the error I get: [Thu Dec 27 20:05:17 2012] [error] [client] client denied by server configuration: /prod/html/server-status – edotan Dec 27 '12 at 20:06
here is my httpd.conf: – edotan Dec 27 '12 at 21:42
Try adding ServerAlias localhost to this VirtualHost declaration. Try lynx Try temporary disabling mod_rewrite. As @Epaphus suggested try moving server-status declaration outside VirtualHost. Do you have any other VirtualHosts configured? – 0xFF Dec 28 '12 at 6:04
I added ServerAlias localhost and disabled the mod_rewrite but still I get [error] [client] client denied by server configuration: /prod/html/server-status – edotan Dec 28 '12 at 18:42
up vote 2 down vote accepted

Try it with the IP instead of the host name, This is how mine looks ( ::1 is there as the server also has IPv6 enabled)

<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from ::1


lynx http://localhost/server-status 

might not be matching the virtual host "" so you could try putting the Location /server-status outside of the VirtualHost in the http.conf

share|improve this answer

Just in case this helps someone:

In newer versions of Apache there is a default server-status config setting in conf/extra/httpd-info.conf which will override any server-status settings in httpd.conf

That default config in conf/extra/httpd-info.conf is set to “Allow from” and will annihilate all fancy server-status changes you do in httpd.conf

So if you are facing permission issues make sure you are editing the proper file!

share|improve this answer
How new of Apache version? And how do you know that this isn't something peculiar to your distribution (which you forgot to mention)? – Michael Hampton Aug 27 '13 at 20:02

You might want to look at your /etc/hosts localhost
share|improve this answer

Your Answer


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.