From owner-freebsd-questions@FreeBSD.ORG Fri Jan 2 13:38:07 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14797106564A for ; Fri, 2 Jan 2009 13:38:07 +0000 (UTC) (envelope-from stanb@panix.com) Received: from mail1.panix.com (mail1.panix.com [166.84.1.72]) by mx1.freebsd.org (Postfix) with ESMTP id 7D2968FC08 for ; Fri, 2 Jan 2009 13:38:06 +0000 (UTC) (envelope-from stanb@panix.com) Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by mail1.panix.com (Postfix) with ESMTP id 099BD2940F; Fri, 2 Jan 2009 08:38:06 -0500 (EST) Received: from teddy.fas.com (c-76-26-198-188.hsd1.sc.comcast.net [76.26.198.188]) by mailbackend.panix.com (Postfix) with ESMTP id CF9AF1892D; Fri, 2 Jan 2009 08:38:05 -0500 (EST) Received: from stan by teddy.fas.com with local (Exim 3.36 #1 (Debian)) id 1LIkE1-0003HW-00; Fri, 02 Jan 2009 08:38:05 -0500 Date: Fri, 2 Jan 2009 08:38:05 -0500 From: stan To: Jerry Message-ID: <20090102133805.GA12504@teddy.fas.com> Mail-Followup-To: Jerry , freebsd-questions@freebsd.org References: <20090102073354.GA4245@teddy.fas.com> <20090102071440.4b063e5a@scorpio> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090102071440.4b063e5a@scorpio> X-Editor: gVim X-Operating-System: Debian GNU/Linux X-Kernel-Version: 2.4.23 X-Uptime: 08:33:01 up 235 days, 14:55, 1 user, load average: 0.00, 0.02, 0.00 User-Agent: Mutt/1.5.4i Sender: Stan Brown Cc: freebsd-questions@freebsd.org Subject: Re: An Apache2 configuration question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2009 13:38:07 -0000 On Fri, Jan 02, 2009 at 07:14:40AM -0500, Jerry wrote: > On Fri, 2 Jan 2009 02:33:54 -0500 > stan wrote: > > >I'm setting up a 7.1 machine thta will server as, among other things, > >a web serrver. I've installed Apache2. I have some directores in the > >Apache documnet directory that I wish to pasword protect. I have added > >the following clause to /usr/local/etc/apache22/httpd.conf. I have > >created a > > > > > Options Indexes FollowSymLinks > > AllowOverride AuthConfig > > > > > >In the directories that I want protected, I have created .htaccess > >files that look like this: > > > >AuthName "Pictures" > >AuthType "Basic" > >AuthUserFile /usr/local/etc/apache22/users2 > >require valid-user > > > >I have used htpasswd to create the users2 file. > > > >Ecerything works the way that I want _execpt_ the top level web page > >directory index, does not display the directories that have .htaccess > >files in them. > > > >What do I need to do to fix this? > > Have you checked out this URL: > > http://httpd.apache.org/docs/1.3/howto/auth.html > Thanks for the pointer. I read through it, and it does not discuss the visibility of directoiresm unfortunately. -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs.