> I think so too. My personal doubt is still about how Tomcat > would try map a request that comes in as "/xxxx", "xxxx" > being variable and being NOT "myapp". Since it does not find > a match with "/myapp", and since obviously there cannot be an > infinity of "/webapps/xxxx" apps pre-configured, would it > then pass it to the "default app" (/ROOT) ?
I tried this route, and the results are quite remarkable. When I deploy the webapp as ROOT.war, it gets to serve all requests that don't match anything else. So if the webapps dir looks like this: /ROOT.war /SomeApp/* /OtherApp.war When I send a request for /SomeApp/something, it goes to the webapp in that folder, likewise a request for /OtherApp/something ends up in the OtherApp servlet. A request for /foo or /bar, which does not match anything in the folder, gets sent to the ROOT. With this mechanism, I could program the ROOT as (in pseudocode): if port == 666: handle(pathinfo) else if pathinfo.startwith('/MyApp'): handle(pathinfo.split('/',2)[1]) else: error(404) This message and attachment(s) are intended solely for use by the addressee and may contain information that is privileged, confidential or otherwise exempt from disclosure under applicable law. If you are not the intended recipient or agent thereof responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone and with a 'reply' message. Thank you for your co-operation. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org