-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sylvain,
On 11/30/11 8:58 AM, Sylvain Goulmy wrote: > These directories are defined as "extension" of my application and > another important thing is that i can also extend files which are > at the root of my application (as index.html). What does it mean to "extend" an existing file? Replace it or do some kind of horrendous merge? > After a few more test with Tomcat i understand that : > > - You cannot "extend" directory, if you define an external location > which math an existing directory of your application, the > ressources of your application become unreachable. That sounds about right. > - As the documentation say "Using '/' as an aliasPath is not > allowed.", you cannot extend any ressource which is at the root of > your application. Right: if you alias /, you are essentially deploying another webapp -- so you should just do that instead. Tomcat's alias mechanism is intended for use in the case where you have a bunch of static content in a separate directory and you just want to be able to serve it through the same webapp without actually deploying two separate contexts. That's why it works the way it does. You might be able to build this capability yourself by writing your own DirContext and specifying it with a <Resources> element within your <Context> element. See http://tomcat.apache.org/tomcat-7.0-doc/config/resources.html for details. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7ZMaIACgkQ9CaO5/Lv0PDfsgCgjRhQvBbs0DDkCu4ckHZc2Gtl ckMAnAuBNfU8UwZyqNfP1JvWX0oDeYAc =PL/2 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org