Hi I have checkd the URL ' http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
done the same for our applications, But please check if this can be achieved ? 1) My external folder which has *images* is on folder "e/STATICIMAGES" 2) TOMCAT6018 is installed on folder "D:/TOMCAT5523" 3) The web apps under "XYZAPPS" is as "D:/TOMCAT5523/webapps/XYZAPPS" and accessible via "http://<IP>:<PORT>/XYZAPPS" Is this possible to map the "STATICIMAGES" to webapps to serve in browser as * http://<IP>:<PORT>/XYZAPPS/STATICIMAGES * With regardfs Karthik -----Original Message----- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2008 7:32 PM To: Tomcat Users List Subject: Re: external folder be mapped to Tomcat 'specific 'web application' 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] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]