tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "R.C.Nougain" <noug...@cad.delhi.nic.in>
Subject Re: Block a dir to not display its content
Date Wed, 14 Aug 2002 11:27:02 GMT
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