Link to home
Start Free TrialLog in
Avatar of amnhtech
amnhtechFlag for United States of America

asked on

Tomcat 5.5 URL redirect

Hi, I need help with Tomcat 5.5. Here is the situation I have a servlet application with url http://serverip:8080/name.

How i can make a tomcat to redirect all request sent to http://servername.org go to http://serverip:8080/appname

My backup plan is to use IIS to do the redirect to tomcat, but i am sure that there is much easier way.

Tnak you
Avatar of Mick Barry
Mick Barry
Flag of Australia image

tomcat would need to be listeneing on port 80 to be able to do that (and if it was you probably wouldn't need to redirect).
so it sounds like u need to handle it externally to tomcat
Avatar of amnhtech

ASKER

It looks like Tomcat is a scale down version of Apache. Its definitely doable, but I am not a java guy. My way around for now is running IIS on the same box to redirect all the requests. Probably there is a much better solution and will continue looking for it. Leaving the url as it is, is not an option for me.  
Thank you
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Because is a scale down version of apache httpd.conf is missing. I have only some xml files. In addition to the port I have some other stuff behind it.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i'll try it. Thanks