LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   TOMCAT Redirect a stopped application to another? (https://www.linuxquestions.org/questions/linux-server-73/tomcat-redirect-a-stopped-application-to-another-892331/)

Drigo 07-18-2011 11:10 AM

TOMCAT Redirect a stopped application to another?
 
So, I have two application that I've deployed. Let's say:

http://myhost:8080/application_v14
http://myhost:8080/application_v15

I stopped my application version 14 but I want to create a internal/external link so when the user types the address (http://myhost:8080/application_v14) , it automatically goes to my newer version application (http://myhost:8080/application_v15).

Any help?

Im using SunOS 5.9 and tomcat 5.0.28

SL00b 07-18-2011 11:38 AM

http://en.wikipedia.org/wiki/URL_red...atus_codes_3xx

SL00b 07-18-2011 11:42 AM

In general, you don't want to use the URI as a method for version control. The URI you expect your customers to hit should remain static, without any version number. You can have multiple directories on the web server with different application versions in the directory names, and then just point the URI map to the correct directory.


All times are GMT -5. The time now is 09:21 PM.