From bb9ae5043659eae2955c0b95e1b4c1ab426c8a19 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Wed, 3 Jun 2009 18:28:22 +0000 Subject: allow localhost to query server-status by default. this makes apachectl fully functional. ok johan@, henning@ --- usr.sbin/httpd/conf/httpd.conf | 19 +++++++++++-------- 1 file 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. # -# -# SetHandler server-status -# Order deny,allow -# Deny from all -# Allow from .your_domain.com -# + + SetHandler server-status + Order deny,allow + Deny from all + Allow from 127.0.0.1 +# Allow from .your_domain.com + # # Allow remote server configuration reports, with the URL of -- cgit v1.2.3