To create a redirect from default page in Tomcat edit CATALINA_HOME/webapps/ROOT/index.html:
nano /CATALINA_HOME/webapps/ROOT/index.html
Where CATALINA_HOME is your tomcat directory. Delete the content and replace with the following:
<html>
<head>
<meta http-equiv="refresh" content="0;URL=<url>">
</head>
<body>
</body>
</html>
and replace <url> with new destination.
Bad Idea. Better put a liddle index.jsp to the root like this:
cant we redirect according to the url? any idea?
You put your url in.
Works nice :D, I just needed to put URL=../myApp to redirect
Funciona bien, solo tuve que poner URL=../myApp para que direccione a mi aplicacion web