Well I did find a way to do that by declaring another context just for
that with docBase='c:\www\files' for example. Thing is, all this is not
really working under the Tomcat bundled in JBoss.

I know the next question is a usual one and forgive me in advance for
asking if it is advised to put Apache in front of Tomcat? One option of
solving this is having a servlet (Struts Action for example) which will
serve the files. The other way is using the 'alias' directive under
Apache directing to wherever I'd like in the file system. Which is
better?

Erez

-----Original Message-----
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 19, 2003 1:57 PM
To: Tomcat Users List
Subject: Re: directory outside context root


If on UNIX or Linux, you could use symbolic links, but this is not 
recommended for security and portability reasons.

So, in general, the answer is "no".

John

Erez Efrati wrote:

> Is there some way to tell tomcat to serve files from a 
> specific directory outside the context root?
> 
> Thanks in advance,
> Erez
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to