Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to configure Tomcat to serve external file

843833Sep 10 2001 — edited Sep 21 2001
Hello 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 19 2001
Added on Sep 10 2001
2 comments
336 views