The moose likes Tomcat and the fly likes welcome-file-list question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "welcome-file-list question" Watch "welcome-file-list question" New topic
Author

welcome-file-list question

Asher Tarnopolski
Ranch Hand

Joined: Jul 28, 2001
Posts: 259
hey folks,
i have no problem using welcome-file-list to disable the directory listenings while using it in CATALINA_HOME/webapps/myapp.
on tomcat 4.0 there is a CATALINA_HOME/webapps/ROOT directory where you can place jsp files that will run too. (useful for testing purposes). playing with this i've found that when i make a welcome-file-list entry in the web.xml in CATALINA_HOME/webapps/ROOT/WEB-INF directory, it doesn't work. the ROOT directry is still avaliable for direct listenings...
do you have any ideas if it's a bug, it's built this way, or there is something i didn't understand ?
tia,


Asher Tarnopolski
SCJP,SCWCD
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 11863
In the HOME/conf/web.xml file there is a section for the default servlet - it has this parameter

Make that value false and you should never see a directory listing.
Bill


Java Resources at www.wbrogden.com
Asher Tarnopolski
Ranch Hand

Joined: Jul 28, 2001
Posts: 259
this works, thank's
 
 
subject: welcome-file-list question
 
Threads others viewed
WEB-INF problem
Giving alias for http://localhots:8080/webapp
read/write files from Tomcat web.xml?
My Page instead of Welcome Page of Tomcat
where is my web application root?
developer file tools