Thanks Andre and Tim for the quick response. I do not have an apache server right now. So URL Rewrite tool seems like a good solution. However, I understand that the URL rewrite mechanism ends up losing any parameters when a HTTP POST request is sent to my domain resource. While I am right now downloading and will do a complete read up on URLRewriter, could you give me quick heads up based on your experience of this tool, if it handles HTTP Post request and does it preserve my parameters. ?
Thanks, Anand On Tue, Mar 3, 2009 at 5:18 PM, André Warnier <a...@ice-sa.com> wrote: > Tim Funk wrote: > >> Doable : Yes >> Out of the Box: No >> >> You can write a Servlet filter to examine the incoming hostname and >> forward the request with the username prefix. In fact - you might need to >> write it : UrlRewriteFilter - http://tuckey.org/urlrewrite/ might do it >> for you. >> >> +1 > In Tomcat and for that kind of thing, the UrlRewriteFilter is to my > knowledge the most flexible tool to do this. > > You can also do this at the level of the front-end Apache if you already > have one anyway. Basically the UrlRewriteFilter was originally inspired by > what one can do with the Apache httpd mod_rewrite module. > > If you already do some selective mapping at the Apache level (for example > to have static content delivered by Apache and dynamic content by Tomcat), > then I would think that it would be more logical to do this at the level of > Apache also, and keep your Tomcat configuration simple. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >