tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: Block a dir to not display its content
Date Wed, 14 Aug 2002 12:38:38 GMT
Hi,
What if I want a solution that applies to only one webapp, FooApp for example, and not the
whole server?  Where in FooApp's web.xml would I put the listings = false directive?

Thanks,

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Holger Klein-Altstedde [mailto:holger.klein_altstedde@prioeins.de]
>Sent: Wednesday, August 14, 2002 7:31 AM
>To: 'Tomcat Users List'
>Subject: AW: Block a dir to not display its content
>
>I attached the file /conf/web.xml
>Ist in the servlet section.
>
>Regs
>Holger
>
>> -----Urspr√ľngliche Nachricht-----
>> Von: R.C.Nougain [mailto:nougain@cad.delhi.nic.in]
>> Gesendet: Mittwoch, 14. August 2002 13:27
>> An: Tomcat Users List
>> Betreff: Re: Block a dir to not display its content
>>
>>
>> holger.klein
>>
>> I tried but. Where inside web.xml I need to put!
>>
>> --
>>
>>
>>
>> ----- Original Message -----
>> From: "Holger Klein-Altstedde" <holger.klein_altstedde@prioeins.de>
>> To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
>> Sent: Wednesday, August 14, 2002 4:53 PM
>> Subject: AW: Block a dir to not display its content
>>
>>
>> Try
>>     <init-param>
>>       <param-name>listings</param-name>
>>       <param-value>false</param-value>
>>     </init-param>
>>
>> in your web.xml. This will force Tomcat not indexing your directory.
>>
>> Regs
>> Holger
>>
>> > -----Urspr√ľngliche Nachricht-----
>> > Von: D Bamud [mailto:nougain@cad.delhi.nic.in]
>> > Gesendet: Mittwoch, 14. August 2002 13:21
>> > An: Tomcat Users List
>> > Betreff: Block a dir to not display its content
>> >
>> >
>> > Tomcat4.0.4 / J2SDK1.4.0/W2K
>> >
>> > My application is webapps/bbc. It works just fine. The dirs
>> inside it
>> > are "jsp" and "WEB-INF". Inside the jsp dir I have my *.jsp
>> files and
>> > also some directories like "doc", "src", "images" etc.
>> These are the
>> > directories that the end user should not see content of via the
>> > browser. If someone make a URL like /bbc/jsp/doc the contents are
>> > displayed on the browser and the user could see/save them.
>> I want to
>> > prevent them IN THE SAME WAY AS "WEB-INF" dir is now (Tomcat4.x
>> > onwards). How to do it.
>> >
>> > One way is of-course put default file like index.html (based on the
>> > configuration). But I am looking for more better way (WEB-INF way).
>> > Where and what I need to delcare.
>> >
>> > --
>> > Thanks
>> >
>> >
>> >
>> > --
>> > 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>
>>
>>
>>
>> --
>> To unsubscribe, e-mail:
>> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
>> For
>> additional commands,
>> e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
>>

Mime
View raw message