On Tue, 5 Nov 2002, Turner, John wrote:

> Stick a file called "index.html" in the directory where you want
> listings suppressed.
>
> Write a Filter to intercept all requests and look for a filename in
> the request...open-ended requests like "/" or "/myapp/" would be
> intercepted and redirected.
>
> Make sure you have a welcome file list setup in your web.xml.

Also, the same change that was previously suggested for the
conf/web.xml file can be used in individual webapp/context web.xml
files.  (You may need to copy all of the stuff for the default
servlet.)


> > -----Original Message-----
> > From: Marc Mendez [mailto:mendez@;lug.com]
> > Sent: Tuesday, November 05, 2002 11:38 AM
> > To: Tomcat Users List
> > Subject: Re: Standalone Tomcat : suppress directory listing in web.xml
> >
> >
> >
> > ----- Original Message -----
> > From: "Turner, John" <[EMAIL PROTECTED]>
> > >
> > > Did you search the archives?  This topic has come up
> > several times before.
> > > Do some research!
> >
> > And... do read my posts !
> >
> > 1. I browsed the archive
> > 2. The solutions does not work.
> >
> > I want to change the web.xml of the app.
> >
> > I usually use mailing list, so I know there is archive (I
> > spend 1 hour this
> > morning to get solutions). Most of the time, people can
> > change conf/web.xml
> > or server.xml. I can't.
> >
> > But thanks to remind me of  how to use ML :-)
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:tomcat-user-help@;jakarta.apache.org>
> >
>
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
>

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to