tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: Mapping /BAH/ to /
Date Thu, 08 Jan 2004 16:02:06 GMT

Howdy,

>Thanks for the response.  How bout if I want the mapping to be for
*all*
>webapps on the appserver?  Eg, I want:
>
>http://hostname:8080/FOO/bar to map to /bar
>http://hostname:8080/FOO/sampleWebapp to map to /sampleWebapp
>http://hostname:8080/FOO/anotherWebapp to map to /anotherWebapp
>
>Etc for all webapps in the server.  Is this behavior possible?

Take a look at the balancer webapp's URLStringMatchRule (Balancer ships
with tomcat 5).  It's perfect for your needs.  You would add the
balancer filter to your webapp and add a string match rule to balancer's
rules.xml file for every case like the above 3.

Yoav Shapira

>
>-----Original Message-----
>From: Shapira, Yoav [mailto:Yoav.Shapira@mpi.com]
>Sent: Thursday, January 08, 2004 10:52 AM
>To: Tomcat Users List
>Subject: RE: Mapping /BAH/ to /
>
>
>
>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!
>>
>>----------------------------------------------------------------------
-
>----
>>---
>>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: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>
>This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary
>and/or privileged.  This e-mail is intended only for the individual(s)
to
>whom it is addressed, and may not be saved, copied, printed, disclosed
or
>used by anyone else.  If you are not the(an) intended recipient, please
>immediately delete this e-mail from your computer system and notify the
>sender.  Thank you.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>-----------------------------------------------------------------------
----
>---
>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: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
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