Static content in directories outside of $JETTY_HOME

View: New views
1 Messages — Rating Filter:   Alert me  

Static content in directories outside of $JETTY_HOME

by jlieberman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Greetings -

I have been trying to understand the Jetty context and resource concepts and I am thoroughly confused.  All of the configuration examples that I have been able to find appear to involve directories that are in a path under (inside) the $JETTY_HOME root directory.  I would like to know if it is possible to designate a completely separate directory for static content.  

For example, if $JETTY_HOME is /u01/apps/jetty/jetty-6.1.5 and the traditional webapps directory is $JETTY_HOME/webapps, is it possible for me to also serve static content from /u02/docs which is on a completely different disk?  I do not want to use symlinks and would prefer to configure Jetty itself to understand that there is a content directory in a place quite removed from its internal $JETTY_HOME.

Any advice or examples would be very gratefully received.
Thanks -
Joel