mod_rewrite is definitvly HTTPd Swiss Knife and having it in Tomcat is definitivly a good news.
This valve is for Tomcat 8 and higher or could it be used with Tomcat 7 ? Cheers 2013/1/9 Remy Maucherat <r...@apache.org> > 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 ? > > Rémy > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org > For additional commands, e-mail: dev-h...@tomcat.apache.org > >