Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Turn off directory listings

 
Morten Moeller
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should be a fairly simple thing but I cannot find where todo it
Instead of showing the files in a directory (when I goto the url http://mycomp.mydomain.com:9081/myapp/) I want a page to be shown. I've tried to add index files with various extensions, but noone seems to work.
How do you turn off directory listing and rather redirect it to some indexfile? Any help is really appriciated
- Morten
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This doesn't sound like a WebSphere question. Does this have anything to do with IBM WebSphere?
Kyle
 
Morten Moeller
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well just having a simple "index.jsp"/"index.XXX" works in weblogic and not in websphere..
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK -- I just really needed to find out if this really was a WebSphere question -- you wouldn't believe some of the off-topic questions that people put in this forum.
:roll:
Anyway, which version of WebSphere are you using and what is your configuration?
Kyle
[ January 10, 2002: Message edited by: Kyle Brown ]
 
Morten Moeller
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I explained it poorly Im sorry, but I figured it out.
We got a servlet that handles a certain extension (*.lsw) and on weblogic we sat the welcome-file to welcome.lsw .. This didn't work in websphere it seems like it tries to find the actual file. Instead I ended up with a directory listing. Using a jsp extension and make a jsp forward to welcome.lsw instead worked though.
 
dhanu varma
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Morten,
Try this if u r using websphere 3.5
In the file Enable Service of web application we can set the parameter in the advance tab as
---default.page as the name of the parameter and index.jsp as the value of the parameter and it works fine.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic