From owner-freebsd-questions Sat Nov 10 13:50:29 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp2.mbox.com.au (203-134-146-019.cust.pth.iprimus.net.au [203.134.146.19]) by hub.freebsd.org (Postfix) with ESMTP id 01E3437B405 for ; Sat, 10 Nov 2001 13:50:27 -0800 (PST) Received: from nms2.mbox.com.au (webmail.i7mail.com.au [192.168.20.4]) by smtp2.mbox.com.au (Sun Internet Mail Server sims.4.0.2000.05.17.04.13.p6) with ESMTP id <0GML0032TTVJ03@smtp2.mbox.com.au> for freebsd-questions@FreeBSD.ORG; Sun, 11 Nov 2001 05:47:43 +0800 (WST) Received: from mbox.com.au ([127.0.0.1]) by nms2.mbox.com.au (Netscape Messaging Server 4.15) with ESMTP id GMLTVO01.0AB for ; Sun, 11 Nov 2001 05:47:48 +0800 Date: Sun, 11 Nov 2001 08:47:48 +1100 From: BSD Freak Subject: Denying directory listings in Apache To: FreeBSD Questions Message-id: <36fbfc36832d.36832d36fbfc@mbox.com.au> MIME-version: 1.0 X-Mailer: Netscape Webmail Content-type: text/plain; charset=us-ascii Content-language: en Content-disposition: inline Content-transfer-encoding: 7BIT X-Accept-Language: en 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 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.) Better still how would I tell apache to serve only .html .php .gif .jpg and .png file only? Thanks ..... --------------------------------------------------------------------- Would you like a mobile office from only $29.95 per year? Visit http://www.mbox.com.au To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message