Re: Preventing directory listings in WebApplication

2005-01-10 Thread Paul Taylor
Ok Ive realised what I was doing wrong I was listing a file on each 
directory
as follows


  section1/start.jsp
  section2/start.jsp

when i just needed to specify the file 

Also you can use it in conjunction with listing =false which I need because 
some directories do not have a suitable default.
Ben Souther wrote:
Just before the error page listings in your application's web.xml file.
  4305
  4306   
  4307   index.html
  4308   index.jsp
  4308   start.jsp -
  4309
  4310 

Re: Preventing directory listings in WebApplication

2005-01-10 Thread Ben Souther
Just before the error page listings in your application's web.xml file.

   4305
   4306   
   4307   index.html
   4308   index.jsp
   4308   start.jsp -
   4309
   4310  >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >
> >  
> >
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Preventing directory listings in WebApplication

2005-01-10 Thread epyonne
There are two ways to do that:
1. Turn off the directory listing in one of the configuration file. But I
cannot remember which one off the top of my head.
2. Put an index.jsp with a generic message in each folder.

Hope this helps.


- Original Message - 
From: "Paul Taylor" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Monday, January 10, 2005 08:21 AM
Subject: Preventing directory listings in WebApplication


> Hi
> How exactly do I stop the user going into directory containing jsps and
> listing all the jsps within it as a directory listing. I dont mind them
> specifying a particular jsp and going straight to that but I would / to
> map to the default page for the particular some section.
>
> i.e
> myapp/section1
> i want go to myapp/section1/start.jsp
>
> myapp/section2
> i want go to myapp/section2/start.jsp
>
>  I guess its something to do with mappings the applications in web.xml
> but I cant get it working.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: preventing directory listings

2003-10-06 Thread Boemio, Neil (GEI, FGI)
In the web.xml under the conf directory, change the listings parameter to false for 
the default servlet.  This is for 4.1.27, don't know if the same applies to 3.3.1a

  
default

  org.apache.catalina.servlets.DefaultServlet


debug
0


listings
false

1


-Original Message-
From: Denver J. Saldanha [mailto:[EMAIL PROTECTED]
Sent: Monday, October 06, 2003 1:29 AM
To: [EMAIL PROTECTED]
Subject: preventing directory listings


Hi,
 
I am using tomcat 3.3.1a. Now when i type sin the url
http://localhost:8080/
  I can see the directory listing. Is there any
way
to prevent this. Could you please let me know about this if there is a
way. 
 
Thanks and Regards
Denver Saldanha

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]