Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 17997 invoked from network); 20 Feb 2004 16:50:30 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 20 Feb 2004 16:50:30 -0000 Received: (qmail 66809 invoked by uid 500); 20 Feb 2004 16:50:01 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 66789 invoked by uid 500); 20 Feb 2004 16:50:01 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 66773 invoked from network); 20 Feb 2004 16:50:01 -0000 Received: from unknown (HELO mailgate.siemenscomms.co.uk) (194.129.217.115) by daedalus.apache.org with SMTP; 20 Feb 2004 16:50:01 -0000 Received: from CONVERSION-DAEMON.siemenscomms.co.uk by siemenscomms.co.uk (PMDF V6.0-24 #40642) id <0HTE00B016L3EI@siemenscomms.co.uk> for tomcat-user@jakarta.apache.org; Fri, 20 Feb 2004 16:46:19 +0000 (GMT) Received: from beex10.siemenscomms.co.uk ([137.223.246.252]) by siemenscomms.co.uk (PMDF V6.0-24 #40642) with ESMTP id <0HTE00B056KXEH@siemenscomms.co.uk> for tomcat-user@jakarta.apache.org; Fri, 20 Feb 2004 16:46:09 +0000 (GMT) Received: by beex10.siemenscomms.co.uk with Internet Mail Service (5.5.2650.21) id <19VZ2J6Z>; Fri, 20 Feb 2004 16:52:32 +0000 Content-return: allowed Date: Fri, 20 Feb 2004 16:47:31 +0000 From: "Bodycombe, Andrew" Subject: RE: Disable Directory Listing for Specific Apps. To: 'Tomcat Users List' Message-id: <50B1CBA96870A34799A506B2313F2667B36F71@ntht201e> MIME-version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-type: text/plain Content-transfer-encoding: 7BIT X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I don't know if this would work because I've never tried it, but you could try overriding the default servlet in each of your webapps (just copy the and from the TOMCAT_HOME/conf/web.xml) Then you can control the 'listings' parameter in each individual web application, instead of relying on the setting in the default web.xml. -----Original Message----- From: Ben Souther [mailto:bsouther@fwdco.com] Sent: 20 February 2004 16:36 To: Tomcat Users List Subject: Re: Disable Directory Listing for Specific Apps. That would do except that we are allowing customers to create directories and have no guarantee that the welcome file will exist there. It would be nice if we could disable directory listing for the entire app from within the war file. We have no guarantee that they won't be using the same instance of Tomcat for other apps and we are hoping to avoid walking customers through editing the global web.xml file. It's starting to look like this isn't possible.. :-( On Thursday 19 February 2004 05:44 pm, Parsons Technical Services wrote: > If I understand the notes correctly, if you simply include a welcome file > then TC will not serve up the directory listing. This is also how my setup > acts. It will not show the directory for my app which has an index file. > And the global web.xml is untouched. > > See the notes in the global web.xml and Servlet 2.4 specifications. > > Doug > www.parsonstechnical.com > > > ----- Original Message ----- > From: "Ben Souther" > To: "Tomcat Users List" > Sent: Thursday, February 19, 2004 4:54 PM > Subject: Disable Directory Listing for Specific Apps. > > > Is it possible to disable directory listings for a specific web app as > opposed > to editing the global web.xml file in TOMCAT_HOME/conf/web.xml? > > We would like to ship our app as a war file and don't want require that our > customers make global changes to Tomcat for it to behave properly. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org -- Ben Souther F.W. Davison & Company, Inc. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org