tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <>
Subject Re: Trying to access a directory outside docBase... is it possible ?
Date Tue, 15 Dec 2009 16:09:34 GMT
On 15/12/2009 16:05, Peter Crowther wrote:
> 2009/12/15 André Warnier<>
>> 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...

The OP already has a servlet AFAICT.  It's just not working.


> - Peter

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message