Hello, Pham Tran Quoc Viet wrote:
Create x outside of webapps and create a soft link within webapps that points to x. Then, within server.xml add the following lines: <Context docBase="absolute path to x soft link" path="link name" allowLinking="true"/> That's it. Everytime the soft link is hit, tomcat will follow the symbolic link get the appropriate requested file under x.
Ok, but the tomcat 5 docs say that "allowLinking" should not be set to true on Windows systems. Although I'm actually using a Unix flavour as a production environment, this would pose problems for our development environments which are Windows-based. Apart from that, I dislike platform-specific solutions.
Apart from that, wouldn't the symlinks be deleted when the webapp is undeployed by tomcat? And I couldn't "put them" into the war file to reappear after re-deployment, could I?
-- ___________________________________________________________________ | | | knipp | Knipp Medien und Kommunikation GmbH ------- Technologiepark Martin-Schmeisser-Weg 9 D-44227 Dortmund Dipl.-Inform. Thomas Corte Fon: +49-231-9703-0 [EMAIL PROTECTED] Fax: +49-231-9703-200 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]