-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Jeffrey,
On 6/11/18 3:11 PM, Jeffrey Beckstrom wrote: > We would go with the latest which appears to be 9. Google found > articles for V7 and one that said it changed in 8 but did not > describe the change. >>>> Mark Thomas <ma...@apache.org> 6/11/18 3:06 PM >>> > On 11/06/18 19:58, Jeffrey Beckstrom wrote: >> We are looking at migrating from Glassfish to Tomcat. In >> Glassfish, we created alternatedocroot_N entries to map a path in >> Glassfish to a windows drive. >> >> How do we perform a similar function in Tomcat? > > Tomcat version? (it changed between 7.0.x and 8.0.x) You are looking for "resources"[1] (not to be confused with "resources"[2] or "JNDI resources"[3]). You want to use <PreResources> or <PostResources> inside <Resources> inside your <Context> element in META-INF/context.xml. In general, I'd recommend using <PostResources> for non-code files, because you don't want a user to be able to upload a file which then takes precedence over a file or library that comes with your application . Note that resources are *cached by default*, so if you have dynamic changes to the filesystem (e.g. file-uploads, separate processed making changes to the fs, etc.) then you'll want to disable that. Hope that helps, - -chris [1] http://tomcat.apache.org/tomcat-9.0-doc/config/resources.html [2] http://tomcat.apache.org/tomcat-9.0-doc/config/globalresources.html [3] http://tomcat.apache.org/tomcat-9.0-doc/jndi-resources-howto.html -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlsf1jYACgkQHPApP6U8 pFg5EBAAxxEGTUpLisTCMJ2kOIVRwmaj+hkrzo7LbsH/M4JXqoBftKpaM43MyyXz 86Y5GbDGjhJVp1fdKAcI/gFdfI0HAJlbuUAZqYsp6Qd5YEPraw5SJfO5vbwVh7Z1 VffWNlGOd/YYa7OCYY1x1NRCon/dQI5wBdHKjeNeqd9TH65lpnLkygpnet7qWM4O L1s4OtvzUHlHY0XXYoSN4yiFco/o8jnWxMAZFCF+NncC1yU18qQLh3jOpefKmlvb i/VTkhMPaA7o9E+VdXe5dA48TlSqOVwXQJ7NNTIgIzRxF7i1TAk9Lj9NkJD3wrTd ZAUu56w5BaIaPq0E46T5IVczbmWpIdMjRx0DYQN77z2nhxULLBmmOI9aiIpa4brE jX3IH4H6e5LqK9croDbnlB38P4LzhJJGLFaF5tvoteRV0FulFcVaJblVzarjheR3 Sy7tRrnk+9MwwWw2xhEjB3CjKsJzh3LU/9eI/TD8o7fl7g9IJDJ8+eZCRQQSUqBR O11XYL0/rSwKW2pxdav+TO84o1I72oxPklyCNMyZ0Ty7/XA3hO6P3LnxdUBzt9NB mZGRsSwU2YPPNXFtSZS0gM6LBlpv3/9wK0cbAibXlraVu2P7jOQ/DPPkZX8y3Yh9 AwmIE0IpktlBG48Oy0Tq5yDDEs6srwGi7SNuN7FoQUvONz5UEls= =oqLS -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org