Hi David , it looks interesting. But what I don't understand, when I define the filter in the project web.xml how does tomcat knows where to look when the entered url in the browser contains a project name which doesn't exits ? I think, when a user enters localhost:80/siteB I need to have a project in my webapp dir called projectB. What I want is, to redirect some specific urls to another server .
My previous post contains a mistake : localhost:80/siteB should be forwared to localhost:8080/siteB because I don't have an app siteB, but the clients would like to use only one hostname. Thanks, Lothar > -----Ursprüngliche Nachricht----- > Von: "Tomcat Users List" <users@tomcat.apache.org> > Gesendet: 16.03.06 19:36:46 > An: Tomcat Users List <users@tomcat.apache.org> > Betreff: Re: redirect with tomcat > We've used UrlRewriteFilter with good success so far: > http://tuckey.org/urlrewrite/ > > David > > Lothar Krenzien wrote: > > >Hi there, > > > >I'm using tomcat 5.5 and want to redirect some requests to another URL. For > >example the URL localhost:80/siteA should be forwarded to > >localhost:8080/siteB. Of course on Port 8080 listen another web-server. Does > >anybody know a good explanation how to do that ? I've tried with filters in > ><catalina_home>/conf/web.xml and put the classes in the > ><catalina_home>/server/classes and also by defining forwarding-rules in a > >rules.xml file. But all with no success. > > > > > >Thanks for your answer. > > > >Lothar > >__________________________________________________________________________ > >Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach! > > > >Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131 > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]