Date: Sat, 10 Nov 2001 16:06:40 -0600 From: Kristofer Pettijohn <kpettijohn@visi.com> To: BSD Freak <bsd-freak@mbox.com.au> Cc: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: Denying directory listings in Apache Message-ID: <20011110160640.A906@visi.com> In-Reply-To: <36fbfc36832d.36832d36fbfc@mbox.com.au> References: <36fbfc36832d.36832d36fbfc@mbox.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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. <Directory "/home/web/*/www"> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all </Directory> <Directory "/home/web/*/www/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011110160640.A906>