Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Host files on Tomcat possible?

Tags:

tomcat

I have a Tomcat 6.0.24 server running. I'm using to run some JSP pages. Would it be possible to host files on it? E.g. If I type in http://localhost:8080/Sample.avi I would download Sample.avi? Probably there are better servers I guess for this task, but I'd like to stick to Tomcat since I don't wish to install another server. Is it possible?

Thanks and regards, Krt_Malta

like image 871
Krt_Malta Avatar asked Feb 27 '26 16:02

Krt_Malta


1 Answers

It's possible: simply add a <Context> in the server.xml file to point to the directory containing you files.

like image 126
Maurice Perry Avatar answered Mar 02 '26 14:03

Maurice Perry