You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Benz <be...@yahoo.com> on 2008/04/15 10:50:02 UTC

How to redirect a URL to another URL in Tomcat 5.5?

Hi, I need help with Tomcat 5.5.
Here is the situation, I have a servlet application with URL
http://serverip:8080/name.
How can i make a tomcat to redirect all request sent to
http://servername.org go to http://serverip:8080/appname ?

Thank you.

~benz~
-- 
View this message in context: http://www.nabble.com/How-to-redirect-a-URL-to-another-URL-in-Tomcat-5.5--tp16697802p16697802.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: How to redirect a URL to another URL in Tomcat 5.5?

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Benz [mailto:ben2xy@yahoo.com] 
> Subject: How to redirect a URL to another URL in Tomcat 5.5?
> 
> Here is the situation, I have a servlet application with URL
> http://serverip:8080/name.
> How can i make a tomcat to redirect all request sent to
> http://servername.org go to http://serverip:8080/appname ?

1) Configure the HTTP <Connector> to use port 80, not 8080.

2a) Change the name of your default webapp to ROOT (case sensitive) so
no redirect is necessary.

     - or -

2b) Put a welcome page (e.g., index.html) under ROOT that does an
immediate redirect to the desired webapp.

It's not clear in your post if "name" and "appname" are meant to be same
thing; if not, then I don't really know what you're looking for.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org