Mod_proxy does indeed do exactly what I'm asking for (in the Apache space) however, I'm looking to do this in the Tomcat space (without having Apache proxy to Tomcat). Any ideas? Thanks again!
-----Original Message----- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 11:01 AM To: Tomcat Users List Subject: Re: Mapping /BAH/ to / mod_proxy might work too (A *very* quick guess at syntax, ymmv) ProxyPass / http://more.cowbell.com/BAH/ ProxyPassReverse / http://more.cowbell.com/BAH/ -Tim Shapira, Yoav wrote: > Howdy, > Sure, make BAH a simple web application with just one class, a filter > mapped to url-pattern /* that does a sendRedirect to / + the rest of > the path. I don't know if that's simpler than a Valve, but it's > portable. > > Apache's mod_rewrite can also do this, but you probably don't want to > add the complexity of an apache-tomcat setup for this reason alone. > > Yoav Shapira > Millennium ChemInformatics > > > >>-----Original Message----- >>From: Green, Jeffrey [mailto:[EMAIL PROTECTED] >>Sent: Thursday, January 08, 2004 10:50 AM >>To: '[EMAIL PROTECTED]' >>Subject: Mapping /BAH/ to / >> >>Hi all. Quick question regarding Tomcat. I'd like to create a >>mapping such that all requests to >> >>http://hostname:8080/FOO/ <http://hostname:8080/FOO/> are forwarded > > to > >>http://hostname:8080/ <http://hostname:8080/> in a transparent manner > > (to > >>the user, at least). >> >>Thus, if there is a JSP at http://hostname:8080/FOO/bar/Page.jsp >><http://hostname:8080/FOO/bar/Page.jsp> , users can access it by >>either going to that URL or to this url: >>http://hostname:8080/bar/Page.jsp <http://hostname:8080/bar/Page.jsp> >>. (Where BAR is the name of the webapp). Does anyone know if / how >>this can be done? >> >>I know one can implement such functionality using Valves, but I seek a >>simpler solution (if there is one). Thanks! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ------------------------------------------------------------------------------ This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
