tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <>
Subject Re: Mapping /BAH/ to /
Date Thu, 08 Jan 2004 16:01:15 GMT
mod_proxy might work too (A *very* quick guess at syntax, ymmv)

ProxyPass /
ProxyPassReverse /


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 []
>>Sent: Thursday, January 08, 2004 10:50 AM
>>To: ''
>>Subject: Mapping /BAH/ to /
>>Hi all.  Quick question regarding Tomcat.  I'd like to create a mapping
>>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:
For additional commands, e-mail:

View raw message