deny directory listing in tomcat
hi, iam using tomcat5.0, I have developed a web application on my server and I want to deny directory listing in tomcat so that if any one types even http://localhost:8080 it should deny the listings. I tried by changing in web.xml listings falselistings tag, but by this method I can prevent only my application. Can any one suggest the solution please. Thanks G.Vishwam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deny directory listing in tomcat
On 7/5/05, vishwam [EMAIL PROTECTED] wrote: hi, iam using tomcat5.0, I have developed a web application on my server and I want to deny directory listing in tomcat so that if any one types even http://localhost:8080 it should deny the listings. I tried by changing in web.xml listings falselistings tag, but by this method I can prevent only my application. Can any one suggest the solution please. put index.jsp or index.html in every folder. -- rgds Antony Paul http://www.geocities.com/antonypaul24/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: deny directory listing in tomcat
Change in tomcat\conf\web.xml servlet servlet-namedefault/servlet-name servlet-class org.apache.catalina.servlets.DefaultServlet /servlet-class init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namelistings/param-name param-valuetrue/param-value /init-param load-on-startup1/load-on-startup /servlet To servlet servlet-namedefault/servlet-name servlet-class org.apache.catalina.servlets.DefaultServlet /servlet-class init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namelistings/param-name param-valuefalse/param-value /init-param load-on-startup1/load-on-startup /servlet Listing : false Regards Guru -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: 05 July 2005 11:55 To: Tomcat Users List Subject: Re: deny directory listing in tomcat On 7/5/05, vishwam [EMAIL PROTECTED] wrote: hi, iam using tomcat5.0, I have developed a web application on my server and I want to deny directory listing in tomcat so that if any one types even http://localhost:8080 it should deny the listings. I tried by changing in web.xml listings falselistings tag, but by this method I can prevent only my application. Can any one suggest the solution please. put index.jsp or index.html in every folder. -- rgds Antony Paul http://www.geocities.com/antonypaul24/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deny directory listing in Tomcat 4.1.x
in your tomcat_home/conf/web.xml find servlet servlet-namedefault/servlet-name servlet-class org.apache.catalina.servlets.DefaultServlet /servlet-class init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namelistings/param-name param-valuetrue/param-value /init-param load-on-startup1/load-on-startup /servlet make the listing to false. - Original Message - From: Gabriel Belingueres [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Tuesday, May 17, 2005 7:28 PM Subject: Deny directory listing in Tomcat 4.1.x Hi, I need to deny the access to my web app's directory listing in Tomcat 4.1.x. How do I do that? TIA, Gabriel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deny directory listing in Tomcat 4.1.x
Hi, I need to deny the access to my web app's directory listing in Tomcat 4.1.x. How do I do that? TIA, Gabriel
RE: Deny directory listing in Tomcat 4.1.x
Add init-param param-namelistings/param-name param-valuefalse/param-value /init-param to the %CATALINA_HOME%/conf/web.xml file. Robert S. Harper Senior Engineer Information Access Technology, Inc. 1100 East 6600 South Suite 300 Salt Lake City, Utah USA 84121-7411 (801)265-8800 Ext. 255 FAX (801)265-8880 This e-mail is intended only for the addressee and may contain confidential and/or privileged information. Any review, retransmission, or action taken upon this information by persons other than the intended recipient is prohibited by law. If you received this communication in error, please contact us immediately at 801-265-8800. Although this e-mail and any attachments are believed to be free of any virus or other defect, it is the responsibility of the recipient to ensure that anything received or opened is virus free. No responsibility is accepted by IAT for any loss or damage in the event that such a virus or defect exists. -Original Message- From: Gabriel Belingueres [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 17, 2005 12:29 PM To: tomcat-user@jakarta.apache.org Subject: Deny directory listing in Tomcat 4.1.x Hi, I need to deny the access to my web app's directory listing in Tomcat 4.1.x. How do I do that? TIA, Gabriel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deny directory listing in Tomcat 4.1.x
Hi Gabriel, Am Dienstag, 17. Mai 2005 20:28 schrieb Gabriel Belingueres: Hi, I need to deny the access to my web app's directory listing in Tomcat 4.1.x. How do I do that? TIA, Gabriel I don't have running Tomcat 4.1 here to have a look at the web.xml but in Tomcat 5+, you can add the following setting for the default servlet to the web.xml: init-param param-namelistings/param-name param-valuefalse/param-value /init-param http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/funcspecs/fs-default.html http://jakarta.apache.org/tomcat/tomcat-5.0-doc/default-servlet.html http://jakarta.apache.org/tomcat/tomcat-5.5-doc/default-servlet.html If the documentation of the default servlet in your $CATALINA_HOME/conf/web.xml does not list the parameter listings, this will not work however. Then, you may add an index.html, or what else is defined as welcome file on your server, to your directories. This an ackward but working solution. :-) Best wishes Lutz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]