Monday, May 26, 2008

Making Tomcat follow symbolic links (symlink)

Suppose, if you wish to put the media files in /some/other/location, that needs to be accessed via tomcat from the webapps directory, you can create a symlink for the destination in webapps. But tomcat doesn't follow the symlinks to pick the resource by default. You can instruct the tomcat to follow links by modifying conf/context.xml. Here, add attribute to tag as

It works.

Labels:


Comments: Post a Comment

Subscribe to Post Comments [Atom]





<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]