I need help to solve the following issue.
app1 is my web App with following stucture
I have a login.jsp located in webapps/app1/login.jsp.
User will login to the app1 apps by using url
And then the can access the docs under webapps/app1/docs also they can access images under webapps/app1/images.
Now if I am not a authorized user and if I type
www.myname.com/app1/docs I am getting a listing of docs dir
If I type www.myname.com/app1/images, I am getting a listing of images dir
How to avaid this? Please help.
When I type www.myname.com/app1/docs or www.myname.com/app1/images I should get some error message from tomocat.
This apps is on Linux and it's a Tomcat/Apache.
Sorry forgot to ask if there is any setting in tomcat xml file to solve this issue or there is something elase that I have to do.
Which version of Tomcat do you use?
In Tomcat 5.5 there is a web.xml in the conf folder. Change the value for "listings" to "false" (see below).
Thank you for the reply. I have 4.1.31 tomat version.
Can you please let me know if the solution that you suggested will work on 4.1.31?
Sorry for the late answer ...
I don't know if it works in Tomcat 4 because I haven't got this version.
Maybe someone else could help ...?