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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to