You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Alvaro Seixas <lu...@yahoo.com.br> on 2005/11/01 19:21:34 UTC

A Simple Advice

Hello List!!

I need a simple advice from you guys. I'm running TC 4.1 on Win 2K.

I need to share large amounts of static content (image files) between contexts. These images will be stored in 12 shared folders (in a NAS storage). What's the best approach to do that??

I thought of creating a context - in webapps - and use symlinks, but there's a restriction for that on Win enviroments. I know that if I just add a 'imgapp.xml' file - with docBase=\\x.x.x.x.\img01 - it works since Tomcat uses a default 'web.xml'. However, is this right??
Also, do I have to create 12 contexts in order to serve all the images??

Please, let me know if you need more info.

Thanks in advance,
Alvaro

Re: A Simple Advice

Posted by Tim Funk <fu...@joedog.org>.
The last way (the one without the web.xml) should work fine.

-Tim

Alvaro Seixas wrote:
> Hello List!!
> 
> I need a simple advice from you guys. I'm running TC 4.1 on Win 2K.
> 
> I need to share large amounts of static content (image files) between contexts. These images will be stored in 12 shared folders (in a NAS storage). What's the best approach to do that??
> 
> I thought of creating a context - in webapps - and use symlinks, but there's a restriction for that on Win enviroments. I know that if I just add a 'imgapp.xml' file - with docBase=\\x.x.x.x.\img01 - it works since Tomcat uses a default 'web.xml'. However, is this right??
> Also, do I have to create 12 contexts in order to serve all the images??
> 

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