Hm... would that work in this case:

<host ...>
   <context docBase="/path/to/web-app/root/" path="/foo-app" ... />
   <context docBase="/some/other/path" path="/images" />
</host>


then from the browser I'd want:

http://www.mydomain.com/foo-app/images
 
to look inside /some/other/path


(the virtual directory should only be available from within foo-app).


> -----Original Message-----
> From: Carl Olivier [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, July 13, 2004 10:14 AM
> To: Tomcat Users List
> Subject: RE: Is there such a beast ? (virtual directories)
> 
> 
> Inside a host you could add a <context path="/images" 
> docBase="/usr/local/somewhere" /> 
> 
> Regards,
> 
> Carl
> 
> -----Original Message-----
> From: Mike Curwen [mailto:[EMAIL PROTECTED] 
> Sent: 13 July 2004 05:13 PM
> To: [EMAIL PROTECTED]
> Subject: Is there such a beast ? (virtual directories)
> 
> Hello all,
> 
> I had a friend ask me on the phone a couple days ago, and now 
> a question has popped up at javaranch. I've looked in the 
> docs and googled, but haven't found a definitive 'no' answer 
> (shouldn't life be that simple?). Thought I'd ask here.
>   
> Is there such a thing as directory aliasing / virtual 
> directories (like you get in Apache), available in Tomcat?
>  
> so you'd specify that /images is *really* over here at 
> /usr/local/some/funky/place/images
> 
> I like to tell people they don't need Apache, unless they're 
> doing "special" stuff.  Would this be one of those "special" things ?
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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