From owner-freebsd-questions Sat Nov 10 14: 6:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from conn.mc.mpls.visi.com (conn.mc.mpls.visi.com [208.42.156.2]) by hub.freebsd.org (Postfix) with ESMTP id 70CE837B417 for ; Sat, 10 Nov 2001 14:06:41 -0800 (PST) Received: from isis.visi.com (isis.visi.com [209.98.98.8]) by conn.mc.mpls.visi.com (Postfix) with ESMTP id D5A10813D; Sat, 10 Nov 2001 16:06:40 -0600 (CST) Received: (from kpettijohn@localhost) by isis.visi.com (8.8.8/8.8.8) id QAA01001; Sat, 10 Nov 2001 16:06:40 -0600 (CST) Date: Sat, 10 Nov 2001 16:06:40 -0600 From: Kristofer Pettijohn To: BSD Freak Cc: FreeBSD Questions Subject: Re: Denying directory listings in Apache Message-ID: <20011110160640.A906@visi.com> References: <36fbfc36832d.36832d36fbfc@mbox.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <36fbfc36832d.36832d36fbfc@mbox.com.au> User-Agent: Mutt/1.3.22i 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 Sun, Nov 11, 2001 at 08:47:48AM +1100, BSD Freak wrote: > Hi all.... > > Just a quick one, could not find the answer in the http.conf comments. > > How do you deny directory listings with apache (ie directories without > a an index.html or index.php should say something like "access denied" > etc. etc.) In the "Options" tag for the directory, you leave out the "Indexes" option... For example, here is my /home/web/*/www (which allows the index list) and my /home/web/*/www/cgi-bin which does not. Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all AllowOverride None Options None Order allow,deny Allow from all To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message