tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
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 / 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:jeffrey.green@lehman.com]
>>Sent: Thursday, January 08, 2004 10:50 AM
>>To: 'tomcat-user@jakarta.apache.org'
>>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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message