How to configure Tomcat to serve external file
843833Sep 10 2001 — edited Sep 21 2001Hello all,
We are using Tomcat, standing alone, as our application server (we have relatively little static content). Is it possible to configure Tomcat to serve a static file (like an html or .pdf file) from someplace outside Tomcat's directory structure? For example, if I have this directory structure:
/[tomcat home]/webapps/someApp/html
I am able to access html files in the html directory with a URL of http://[machine]:8080/someApp/html/file.html.
However, what if my html file is in this directory: /extras/outputs/html ?
I would guess that there is some kind of URL-actual directory mapping that can be done in the Web.xml
file, but I don't know what that might be.
Any help would me most appreciated. (We are running Tomcat on a Unix (AIX) system).
Thanks,
-- John