Hi Remy, On 09.01.2013 16:04, Remy Maucherat wrote: > Hi, > > I ported a valve providing mod_rewrite functionality (most of it) for > Tomcat "8", and committed it in the sandbox. This could be easily placed > in the main repository, where it would provide an additional item in the > "new features" department for this major release. > > I have a documentation page for it that could be included. The basics is > that it uses a rewrite.properties that has the same contents as the > configuration for mod_rewrite. The rewrite.properties is placed in the > host config folder if the valve is declared in a Host, or in WEB-INF in > the webapp if declared in a Context. > > The main differences with mod_rewrite are: > - (the big one) no proxy flag > - no SSL attributes > - less file related flags available > - allows virtual host rewriting using a host flag (it replaces the host > header instead of the URL and maps again) > Point 2 and 3 are probably relatively easy to fix, while obviously a > proxy is a more involving endeavor. > > There are rewrite solutions out there already, but this one does not use > complex tricks (because it can simply start over request processing > instead of doing more complex request dispatching, which also impacts > the Servlet state), and is mod_rewrite compatible. > > Comments ? Is it nice or useless ?
I only had a look at the code and didn't play with it yet. I'm positively impressed how complete w.r.t. mod_rewrite compatibility it looks and personally I think it is nice and useful. One question that came to my mind and which I did not yet try to find the answer myself is the merging behavior of the rules if the valve is configured at host and context level. Regards, Rainer --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org