From owner-freebsd-questions@FreeBSD.ORG Thu Jun 17 06:06:16 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B5CA16A4DE for ; Thu, 17 Jun 2004 06:06:16 +0000 (GMT) Received: from munk.nu (mail.munk.nu [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id C813243D2D for ; Thu, 17 Jun 2004 06:06:15 +0000 (GMT) (envelope-from munk@munk.nu) Received: from munk by munk.nu with local (Exim 4.34 (FreeBSD)) id 1Baq0N-0004MC-LH; Thu, 17 Jun 2004 07:04:07 +0100 Date: Thu, 17 Jun 2004 07:04:07 +0100 From: Jez Hancock To: Duane Winner Message-ID: <20040617060407.GA16332@munk.nu> Mail-Followup-To: Duane Winner , freebsd-questions@freebsd.org References: <40D09CA2.2030703@att.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40D09CA2.2030703@att.net> User-Agent: Mutt/1.5.6i Sender: Jez Hancock cc: freebsd-questions@freebsd.org Subject: Re: Apache2 and UserDir in FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jun 2004 06:06:16 -0000 On Wed, Jun 16, 2004 at 03:16:50PM -0400, Duane Winner wrote: > > Does anybody know why this is happening: > > I have found that with apache2, installed via portinstall on both 4.9 > and 5.x, the UserDir is enabled even if it is commented out in httpd.conf! > > It is on by default in the stock httpd.conf that installs with apache2. > If I comment it out and restart, I have found that users can still > create "public_html" directories in their home directories, and publish > content. I found this odd as well on apache13 a while ago. UserDir is enabled by default for apache13 and will only be 'disabled' if you set it disabled explicitly in httpd.conf: UserDir disabled Otherwise, ~/public_html Otherwise the httpd will serve up requests for: http://example.com/~user/ from: ~user/public_html on the local file system. > Why is this happening? I presume it happens because apache is built with defaults set so that UserDir is enabled by default. If you don't want UserDir enabled, probably the easiest thing to do is just disable it as above. Good luck. -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/ http://jez.hancock-family.com/ - Another FreeBSD Diary http://ipfwstats.sf.net/ - ipfw peruser traffic logging