Re: Tomcat 6 and images
Mathias P.W Nilsson wrote: > Can this be hacked? like http://localhost/files/../../somefile No. There have been some recent vulnerabilities with particular configurations in this area but these are fixed in the latest 5.5.x and 6.0.x releases. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 and images
Can this be hacked? like http://localhost/files/../../somefile -- View this message in context: http://www.nabble.com/Tomcat-6-and-images-tp19260262p19379214.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 and images
Thank you very much it works perfectly and I got rid of my servlets :) -- View this message in context: http://www.nabble.com/Tomcat-6-and-images-tp19260262p19282295.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 and images
> From: Mathias P.W Nilsson [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat 6 and images > > How can I fit the images into this beacuse I don't quite follow. Do what Filip suggested; create a element in conf/Catalina/localhost/images.xml with this value: This creates another webapp named "images" (specified by the name of the .xml file) located outside of Tomcat's directory tree. Point your static content URLs to /images/[filename.type] to have Tomcat's DefaultServlet deliver them. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6 and images
Thanks! I'm currently deploying using ROOT.war. Here is the server.xml content. How can I fit the images into this beacuse I don't quite follow. myhost -- View this message in context: http://www.nabble.com/Tomcat-6-and-images-tp19260262p19280777.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6 and images
sure there is, you can deploy it by using a context Filip Mathias P.W Nilsson wrote: Hi! I'm using tomcat with wicket framework for my webapplication. My images, css, flashes resides outside the container and therefor I'm using a Servlet to serve the files. Is there any builtin function to get files outside the container? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6 and images
Hi Martin, Listen just thought I tell you that your email (mailing list stuff) is coming out as one long line of unpunctuated text... on Outlook anyway. Its not easy to read it... --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 and images
static images,css and flash are normally served by apache http://httpd.apache.org/could you explain specifically what you want to serve inside TC and why you prefer to serve resources in a container vs Apache http webserver?Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Mon, 1 Sep 2008 13:26:48 -0700> From: [EMAIL PROTECTED]> To: users@tomcat.apache.org> Subject: Tomcat 6 and images> > > Hi!> > I'm using tomcat with wicket framework for my webapplication. My images,> css, flashes resides outside the container and therefor I'm using a Servlet> to serve the files.> > Is there any builtin function to get files outside the container?> -- > View this message in context: http://www.nabble.com/Tomcat-6-and-images-tp19260262p19260262.html> Sent from the Tomcat - User mailing list archive at Nabble.com.> > > -> To start a new topic, e-mail: users@tomcat.apache.org> To unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED]> _ Get thousands of games on your PC, your mobile phone, and the web with Windows®. http://clk.atdmt.com/MRT/go/108588800/direct/01/
Re: Tomcat 6 and images
- Original Message - From: "Mathias P.W Nilsson" <[EMAIL PROTECTED]> To: Sent: Monday, September 01, 2008 10:26 PM Subject: Tomcat 6 and images Hi! I'm using tomcat with wicket framework for my webapplication. My images, css, flashes resides outside the container and therefor I'm using a Servlet to serve the files. Is there any builtin function to get files outside the container? It always depends on exactly what you up to, how you deploy etc... But yes... one way is to... Set the (read up on context stuff) the docbase to an external folder ... So you have a webapp that works outside of /webapps Then in your webapp proper... you just adress the URI of that webapps for images. If you decide later to put the images on say Apache... no problem, same idea. So you dont really have to write a servlet to do it... although if well done, its nice having that as well. The browser comes back for images... so just about anything is possible. --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 6 and images
Hi! I'm using tomcat with wicket framework for my webapplication. My images, css, flashes resides outside the container and therefor I'm using a Servlet to serve the files. Is there any builtin function to get files outside the container? -- View this message in context: http://www.nabble.com/Tomcat-6-and-images-tp19260262p19260262.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]