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

We have an Apache server configured such that in conf/httpd.conf we have (the rest of the file has been removed for brevity):

LoadModule status_module modules/
ExtendedStatus On

And in conf.d/myserver.conf we have (other bits removed again):

Listen 8162
<VirtualHost *:8162>

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


Note that in httpd.conf, all Listen directives are commented out, meaning that Apache is only listening on port 8162. <Location /server-status> is also commented out in httpd.conf.

We get a 403 when we try:

wget http://localhost:8162/server-status

Can server-status run on a non-standard port? If it can, what else should we be looking for in order to make server-status accessible from the localhost?

share|improve this question

this worked for me, when using varnish on port 80, serving apache from port 8000 with an additional apache Listen on port 8001 defined in



<IfModule mod_status.c>
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Uncomment and change the "" to allow
# access from other hosts.

Listen 8001
ExtendedStatus On
<VirtualHost *:8001>
    <Location /server-status>
        SetHandler server-status
        Order deny,allow
        Deny from all
        Allow from localhost ip6-localhost 
    #    Allow from

you can test it with lynx

lynx -dump

the lynx output should look like something like this: ~

                       Apache Server Status for

   Server Version: Apache/2.2.14 (Ubuntu) mod_ssl/2.2.14 OpenSSL/0.9.8k
   Server Built: Nov 3 2011 03:29:23

   Current Time: Saturday, 03-Dec-2011 12:36:05 CET
   Restart Time: Friday, 02-Dec-2011 00:59:04 CET
   Parent Server Generation: 22
   Server uptime: 1 day 11 hours 37 minutes
   Total accesses: 44550 - Total Traffic: 368.1 MB
   CPU Usage: u27.53 s3.48 cu0 cs0 - .0242% CPU load
   .347 requests/sec - 3010 B/second - 8.5 kB/request
   2 requests currently being processed, 4 idle workers


share|improve this answer
Heads up! It is important for ExtendedStatus to be outside the VirtualHost declaration. Apache won't like it within. – flickerfly Apr 25 '14 at 19:28

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.