tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Crowther <peter.crowt...@melandra.com>
Subject Re: Trying to access a directory outside docBase... is it possible ?
Date Tue, 15 Dec 2009 16:05:58 GMT
2009/12/15 André Warnier <aw@ice-sa.com>

> But maybe you could just create a link, inside your deployment directory,
> to the mount ?
>
> /opt/Tomcat/webapps/myApp/docs --> /opt/document-repository
>
> If you're going to do this, be Very Very Careful.  Tomcat doesn't follow
symbolic links by default, even on UNIX.  This is for a very good reason: if
you do this, Tomcat *will* follow the symlink and delete your PDFs when you
undeploy your webapp.

You probably don't want this to happen.

This is a common enough use case (it comes up about once a month on the
list) that Someone may have coded a quick "serve the content from this
directory" servlet, probably based on the root webapp.  Chris?  You're
generally the coder with quick hacks already developed...

- Peter

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message