deny tomcat directory listings

This is a discussion on deny tomcat directory listings within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hi, running a standalone version of tomcat for an internal app - no apache involved. I've been searching for a ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-27-2003
jef
 
Posts: n/a
Default deny tomcat directory listings

Hi,

running a standalone version of tomcat for an internal app - no apache
involved. I've been searching for a way to disable directory listings, but
so far have come up empty on Google and the Jakarta pages.

I did see a reference on google to modify servers.xml and change an entry
for RequestInterceptor or some such -- but I have no such entry.

Any ideas, links or pointers? Thanks!

jef
  #2 (permalink)  
Old 10-28-2003
Larry McFarlane
 
Posts: n/a
Default Re: deny tomcat directory listings

Jef, in your main web.xml file there is a an option to turn off directory
listing. I believe it's defaulted to true which I don't understand, but
once you set it to false, you should be good to go.




On Mon, 27 Oct 2003 16:16:16 -0500, jef <jef@here.com> wrote:
> Hi,
>
> running a standalone version of tomcat for an internal app - no apache
> involved. I've been searching for a way to disable directory listings,
> but
> so far have come up empty on Google and the Jakarta pages.
>
> I did see a reference on google to modify servers.xml and change an entry
> for RequestInterceptor or some such -- but I have no such entry.
>
> Any ideas, links or pointers? Thanks!
>
> jef




--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
  #3 (permalink)  
Old 10-28-2003
jef
 
Posts: n/a
Default Re: deny tomcat directory listings

On Tue, 28 Oct 2003 05:49:43 +0000, Larry McFarlane wrote:

> Jef, in your main web.xml file there is a an option to turn off
> directory listing. I believe it's defaulted to true which I don't
> understand, but once you set it to false, you should be good to go.



Bingo! There it was, indeed. Thanks a bunch. I don't know why they don't
cover some of this stuff in the docs... If these XML files were a tad
easier to read, I wouldn't have had to bug anyone about it :)

Thanks again Larry.


jef
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:52 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0