diff options
author | Robert Nagy <robert@cvs.openbsd.org> | 2009-06-03 18:28:22 +0000 |
---|---|---|
committer | Robert Nagy <robert@cvs.openbsd.org> | 2009-06-03 18:28:22 +0000 |
commit | bb9ae5043659eae2955c0b95e1b4c1ab426c8a19 (patch) | |
tree | 422054be797fa964dbba55bfe03afbfa26a04801 | |
parent | 4eae039596e1aea5bbdea0ea1dd8f760958a5e4c (diff) |
allow localhost to query server-status by default. this makes apachectl
fully functional.
ok johan@, henning@
-rw-r--r-- | usr.sbin/httpd/conf/httpd.conf | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/usr.sbin/httpd/conf/httpd.conf b/usr.sbin/httpd/conf/httpd.conf index f8c5eb62910..b5d38547d65 100644 --- a/usr.sbin/httpd/conf/httpd.conf +++ b/usr.sbin/httpd/conf/httpd.conf @@ -1,4 +1,4 @@ -# $OpenBSD: httpd.conf,v 1.25 2009/04/01 06:47:34 jmc Exp $ +# $OpenBSD: httpd.conf,v 1.26 2009/06/03 18:28:21 robert Exp $ # # Based upon the NCSA server configuration files originally by Rob McCool. # @@ -850,14 +850,17 @@ BrowserMatch "JDK/1\.0" force-response-1.0 # # Allow server status reports, with the URL of http://servername/server-status -# Change the ".your_domain.com" to match your domain to enable. +# Change the ".your_domain.com" to match your domain to enable. By default we +# allow server-status requests from 127.0.0.1 to make apachectl's status and +# fullstatus commands work. # -#<Location /server-status> -# SetHandler server-status -# Order deny,allow -# Deny from all -# Allow from .your_domain.com -#</Location> +<Location /server-status> + SetHandler server-status + Order deny,allow + Deny from all + Allow from 127.0.0.1 +# Allow from .your_domain.com +</Location> # # Allow remote server configuration reports, with the URL of |