Peter, I'm not too sure if this will help but, you might want to try URL Rewriting, if you have Apache as the web server you could use it's rewrite features.
I don't think Tomcat5.0 has a Rewrite feature built in but I came accross this one: URLRewriteFilter http://tuckey.org/urlrewrite/ it works with Tomcat. Then you could map <from>(*.)/images(*.)</from> , to <to>(*.)/var/static/images/(*.)</to> I'm not sure if it'll work since as you've mentioned /var/static/images/ is outside your applications context. -Regards Rashmi ----- Original Message ---- From: Peter Björkman <[EMAIL PROTECTED]> To: users@tomcat.apache.org Sent: Friday, November 10, 2006 3:11:54 AM Subject: Path mapping... (And sorry for hijacking the previous thread - my bad, won't happen again). Hi! I have a web-app residing in "/", the docBase is relative to appBase. I have an issue where I want to serve static files located outside the web-app. For example: /mydir/index.jsp comes from the relative docBase as usual. /images/myimage.gif comes from /var/static/images/myimage.gif, an absolut directory in the servers filesystem. Is this possible without creating a separate web-app with another docBase? Could you map "/images" to that file system path "/var/static/images/"? I've been looking through the documentation (5.0) for this, but cannot find it anywhere... Regards Peter PETER BJÖRKMAN - SYSTEM ARCHITECT josh / together is better / www.josh.se sveavagen 59 / 113 59 stockholm / sweden phone +46 (0)8 650 21 07 / mobile +46 (0)709 687 887 ########################################### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.f-secure.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] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]