Simple solution: Put an index.html file in your images directory -it will be displayed instead of the directory listing.
More complex solution: In your httpd.conf file look for the <Directory> section (there may be more than 1). You will probably find a line like this: Options Indexes FollowSymLinks MultiViews Remove 'Indexes' from the options list (save, restart Apache) and directory indexes should be disabled. -August --- Pedro F Gaspar <[EMAIL PROTECTED]> wrote: > Hi. > > Imagine I have a webapp, say app1, under %TOMCAT_HOME%\webapps, and > under > app1 I have a directory named 'images' where I put all the images my > pages > need. > > If I direct the browser to http://localhost:8080/app1/images I'll > have access to the contents of this directory. > Is there a way to prevent this from happenning? > > I've tried to put the images directory under 'web-inf' but then I > couldn't reference the images files inside the servlets anymore. > > Thanks in advance. > > Pedro > > *********************************************** > Pedro Gaspar > PT Prime > DMK / GSV > Tel: +351 21 500 41 43 > Fax: +351 21 500 45 85 > Email: [EMAIL PROTECTED] > *********************************************** > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.yahoo.com -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>