Hello Emilio, Are you using Apache and mod_jk to front requests to Tomcat? If so, you need to protect the static files or directories using Apache directives. Only if you forward *all* requests to Tomcat or just go directly to Tomcat on port 8080 will the previously mentioned solutions work.
Jake Monday, May 06, 2002, 12:51:49 PM, you wrote: EM> So sorry, but apparently it doesn`t work , I made the changes and it still EM> show the directories EM> even with the examples directory of the tomcat I have the problem. EM> http://myhost:8080/examples/ EM> Directory Listing For /Filename Size Last Modified EM> images/ Tue, 09 Apr 2002 18:05:14 GMT EM> jsp/ Tue, 09 Apr 2002 18:05:14 GMT EM> servlets/ Tue, 09 Apr 2002 18:05:12 GMT EM> Apache Tomcat/4.0 EM> Please some other advice? I am using Tomcat4.0.3 I found the file, ok, I EM> turn off , I have the welcome page, but apparently it just work for the main EM> page, but what happen when I try to enter to my webapps like examples? EM> Really apreciate your help EM> -----Mensaje original----- EM> De: Golan [mailto:[EMAIL PROTECTED]] EM> Enviado el: lunes, 06 de mayo de 2002 12:38 EM> Para: Tomcat Users List EM> Asunto: RE: Access to the source code from the beginning EM> Emilio: EM> Check out the web.xml file located at ./TOMCAT_HOME/conf/web.xml. EM> You will notice, probably in the first <servlet/> mapping, the following... EM> <init-param> EM> <param-name>listings</param-name> EM> <param-value>true</param-value> EM> </init-param> EM> change this to... EM> <init-param> EM> <param-name>listings</param-name> EM> <param-value>false</param-value> EM> </init-param> EM> Restart your server and this should solve the problem you have indicated. EM> Peace, EM> Tal EM> -----Original Message----- EM> From: Emilio Miranda [mailto:[EMAIL PROTECTED]] EM> Sent: Monday, May 06, 2002 10:29 AM EM> To: Tomcat Users List EM> Subject: Access to the source code from the begining EM> Hello!! EM> I am developing a little site : EM> http://myhost:8080/mkg/ EM> In mkg I have mi site, well if I put this link it appears the list of all my EM> files like this : EM> Directory Listing For / EM> Filename Size Last Modified EM> cfg/ Sat, 04 May 2002 00:19:27 GMT EM> images/ Thu, 02 May 2002 21:52:59 GMT EM> jsp/ Fri, 03 May 2002 23:35:32 GMT EM> servlets/ Thu, 02 May 2002 21:52:59 GMT EM> And somebody could read it, I mean the source code or cfg files. ... what EM> can I do in order to avoid this? EM> Thanks a lot! EM> -- EM> To unsubscribe, e-mail: EM> <mailto:[EMAIL PROTECTED]> EM> For additional commands, e-mail: EM> <mailto:[EMAIL PROTECTED]> EM> --- EM> Incoming mail is certified Virus Free. EM> Checked by AVG anti-virus system (http://www.grisoft.com). EM> Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002 EM> --- EM> Outgoing mail is certified Virus Free. EM> Checked by AVG anti-virus system (http://www.grisoft.com). EM> Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002 EM> -- EM> To unsubscribe, e-mail: EM> <mailto:[EMAIL PROTECTED]> EM> For additional commands, e-mail: EM> <mailto:[EMAIL PROTECTED]> EM> -- EM> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> EM> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Best regards, Jacob mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>