From owner-freebsd-questions Mon Oct 22 14: 8: 9 2001 Delivered-To: freebsd-questions@freebsd.org Received: from webs1.accretive-networks.net (webs1.accretive-networks.net [207.246.154.13]) by hub.freebsd.org (Postfix) with ESMTP id 1ACA037B405 for ; Mon, 22 Oct 2001 14:08:06 -0700 (PDT) Received: from localhost (davidk@localhost) by webs1.accretive-networks.net (8.11.1/8.11.3) with ESMTP id f9ML84916188; Mon, 22 Oct 2001 14:08:04 -0700 (PDT) Date: Mon, 22 Oct 2001 14:08:04 -0700 (PDT) From: David Kirchner X-X-Sender: To: "Dennis R. Abel" Cc: Subject: Re: Newbie Question In-Reply-To: <5.1.0.14.2.20011022160130.00a5a3f0@127.0.0.1> Message-ID: <20011022140715.E85958-100000@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 22 Oct 2001, Dennis R. Abel wrote: > Can I, and if so, exactly how do I configure my httpd.conf to return this > message when an attempt is made to list a directory: > > "Directory Listing Denied > This Virtual Directory does not allow contents to be listed. " > > I would like to avoid having to put an index.html or .htaccess file in > every directory. > > Dennis It won't be exactly like this (that's an IIS error if I'm not mistaken), but you can effecively do that by setting "Options -Indexes" in your docroot's .htaccess or in the appropriate place in the httpd.conf file. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message