tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: external folder be mapped to Tomcat 'specific 'web application'
Date Wed, 08 Oct 2008 14:02:13 GMT
Karthik Nanjangude wrote:
> Hi
> 
> 
> SPEC
> TOMCAT 6018
> O/s UNIX11
> J2SDK 1.6
> 
> 
> Folder  :   /root/images
> Web application folder   :   /root/TOMCAT6018 / webapps / XYZAPPS
> 
> 
> Note: by defining the  xml in context under   TOMCAT6018/conf/Catalina\localhost
>          Virtual Mapping  as  'http://<IP>:<PORT>/images'  can be achieved
> 
> 
> Question
> 
> Can a external folder be mapped to Tomcat 'specific 'web application'   only  as shown
below
> 
> The URL Mapping should be    http://<IP>:<PORT>/XYZAPPS/images

Yes, just set up a sub-context. Something like a file called:
$CATALINA_BASE/Catalina/localhost/XYZAPPS#images.xml

with content:
<Context docBase="/root/images" />

> Reason : Most of the APP Servers  for web container  provide this functionality

So does Tomcat ;)

See http://tomcat.apache.org/tomcat-6.0-doc/config/context.html for details.

Mark


---------------------------------------------------------------------
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