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/mod_status.so
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
</Location>
</VirtualHost>
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?
Best Answer
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
.
you can test it with lynx
the lynx output should look like something like this: ~