Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 58657 invoked from network); 5 Dec 2005 07:39:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Dec 2005 07:39:13 -0000 Received: (qmail 54702 invoked by uid 500); 5 Dec 2005 07:39:09 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 54623 invoked by uid 500); 5 Dec 2005 07:39:09 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 54596 invoked by uid 99); 5 Dec 2005 07:39:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Dec 2005 23:39:08 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of janb@mortbay.com designates 209.235.255.182 as permitted sender) Received: from [209.235.255.182] (HELO jetty3.inetu.net) (209.235.255.182) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Dec 2005 23:39:08 -0800 Received: (qmail 44543 invoked from network); 5 Dec 2005 07:38:46 -0000 Received: from cpe-144-133-196-185.nsw.bigpond.net.au (HELO ?192.168.8.2?) (janb@144.133.196.185) by jetty3.inetu.net with AES256-SHA encrypted SMTP; 5 Dec 2005 07:38:46 -0000 Message-ID: <4393EE79.1050603@mortbay.com> Date: Mon, 05 Dec 2005 18:38:33 +1100 From: Jan Bartel Reply-To: dev@geronimo.apache.org User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@geronimo.apache.org Subject: Re: Web Containers: Setting for directory listings? References: <74e15baa0512042013y3e6a55c8n7afb899425adcbc7@mail.gmail.com> In-Reply-To: <74e15baa0512042013y3e6a55c8n7afb899425adcbc7@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Aaron, To disable/enable directory listing for Jetty, you must set the initParameter called dirAllowed to false/true for Jetty's default servlet called org.mortbay.jetty.servlet.Default. If I understand correctly, the jetty builder plan.xml sets this to true for the container, but it should be possible to do this on a per-webapp basis. Perhaps by putting a setter on the JettyWebAppContext class that can be referenced from the geronimo-web.xml file? I will take a closer look at this and get back to you. regards Jan Aaron Mulder wrote: > It would be nice to have a settings in the geronimo-web.xml for > whether the web container should return a directory listing or a 404 > error if the request URL points to a directory and there's no welcome > file present. > > Do Jetty and Tomcat both support this? Any idea whether it's easy to do? > > Thanks, > Aaron >