Hello, Le mercredi 9 juillet 2025, 20:41:18 CEST Christopher Schultz a écrit : > Oh, I see: you have a bunch of static files and you just want to be able > to have them load on as many web servers as possible. > > You've been spoiled by general-purpose web servers like httpd and > jigsaw, which surely stole the idea from httpd :) > > Tomcat and Jetty are special-purpose application servers which were > written primarily to serve dynamic content but had to support static > content for some obvious reasons. But they don't support all of the > crazy stuff that many general-purpose web servers support. > > I've been thinking about how to implement this, and I might have some > code soon.
Until [1] is implemented, would there be a workaround that would permit me to "redirect" requests to static files to another file? There is no servlet (or java code) to serve the files. They are just static HTML files. I thought maybe in web.xml but couldn't find anything. servlet-mapping doesn't seem to fit. It seems to be designed for servlets only. And there doesn't seem to be such a filter in tomcat [2]. For example: Request: filename.html Served file content (or redirect to): filename.html.en BTW: the feature request of [1] is available in jetty 12.1. I haven't tested it yet, though. [1] https://bz.apache.org/bugzilla/show_bug.cgi?id=69735 [2] https://tomcat.apache.org/tomcat-11.0-doc/config/filter.html --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
