-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Igal,
On 7/30/20 13:49, Igal Sapir wrote: > Hello, > > I have the following in web.xml: > > - A servlet named Lucee, mapped to by URI pattern "*.cfm" - A > default servlet from Tomcat, with init-param listings=true - A > welcome-file of "index.cfm" > > My expectation is that for a request to a given directory, if a > file named index.cfm exists then it would be passed to the Lucee > servlet, and if not, the Directory Listings will be displayed. This is what I would expect as well. I believe this is how httpd works, for example. I believe the default welcome-file list includes index.jsp and that's how the JSP servlet is invoked. So this really should be working. > Instead, requests to a given directory are forwarded to Lucee, > which return a 404. So Lucee sees a request to /foo/bar instead of /foo/bar/index.cfm? What does the original request look like -- what is the URL being requested by the user-agent? Can you post your exact config? > Is it possible to configure Tomcat so that it would check if the > file exists before matching the URI pattern of the welcome file? ?? > This (as all Directory Listings, I would hope) is for a > Development setup so it's OK if the check adds a few more > microseconds to the request. Resources can be configured to cache file-check misses (I think!), so it would be pretty fast if you needed it to be. - -chris -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl8jD1QACgkQHPApP6U8 pFjfWBAAj10KspESQkhIcfOKAdFFTHrXbyxmFH6PBlvqusaZ2e/TTpf69wxN8Evp f2x2VNuUaE58LLKQGusey0V1a0lGtETHVAcZWiZeY57yiWV9AYkdW88LJY4aXGyr TZE5PT12VTt7Dr6xAL7Jc9kjLy2oBp+X0a0cP+XVUVsmvwt5vS0t5l/5qpskR9Fn MvpA0PFeQerUt83849AZ1PfMcqnQZz8ufjCfRixA8J3E7ztTkEZ4CnH90pAbve1W LBi89ks4DigMJnTJzEbyucCQjqbNj+hbZju7nvPNYPiGTvtdqbjMGMLb+MPr0O9D c+i2fPgBaysJrYXnLWTLMulE3yeq6M/cA8IEmYQ8tApIchQy8yklvaEjRTHyuI+A c5VevIygXT0xZj+vJDvACpDRxvfOtWmPwlx8KOOVkKHSBD98BPObg4lf2BgrdOvM gBe32NXWWK+/yWjNrd3a24f+a5NC6KEa1CZjMUh1mSt7JsvYU0tT4HTU8r2aGics /t/vkyzAdxz7zzssEBSi0dS9bO738Bp8KTqwu6q4TVlrQsDT60hUJ3lPKTIf7omI tg18UBONNHF4lpbgDjlk6ypIf9xjJmbwKHRDlWWY/yJmHATe2lghYvMus/TEHEin /QusGjCKwmwSO85i1QmGRcn3Oqw97AYSkOLdwSd3dIDQMARQaLY= =Qdek -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org