> From: Benz [mailto:[EMAIL PROTECTED] 
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to