tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zengfa Gao <zf...@yahoo.com>
Subject RE: Using DefaultServlet for directory outside of webapps
Date Thu, 17 Apr 2008 16:47:21 GMT
Chuck,

This a great idea. Now I am trying for find where to
put ourshare.xml file.

We are using Tomcat under Jboss, I didn't find
conf\Catalina yet.

Thanks a lot!

Jeff

--- "Caldarale, Charles R"
<Chuck.Caldarale@unisys.com> wrote:

> > From: Zengfa Gao [mailto:zfgao@yahoo.com] 
> > Subject: Using DefaultServlet for directory
> outside of webapps
> > 
> > Is any setting for us to redirectory
> DefaultServlet to
> > look at other defined directory? For example, if
> we
> > put files under /var/opt/ourshare directory, how
> can
> > we do it?
> 
> The easiest way is to define another <Context> with
> a docBase set to the
> location of the external directory.  For example,
> place the following in
> conf/Catalina/[host]/ourshare.xml:
> 
> <Context docBase="/var/opt/ourshare"/>
> 
> You can then forward or redirect references to the
> images to
> "/ourshare/[image].gif" and the DefaultServlet will
> handle them
> properly.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR
> OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended
> recipient. If you
> received this in error, please contact the sender
> and delete the e-mail
> and its attachments from all computers.
> 
>
---------------------------------------------------------------------
> To start a new topic, e-mail:
> users@tomcat.apache.org
> To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
> 
> 



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message