28
Mar/091
Mar/091
Tomcat: Redirect default home page to another URL
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.
Related posts:
- Linux: Apache Tomcat tips and tricks
- Linux: Run tomcat with apache – mod_jk configuration
- Linux: vsftpd and symbolic links
- Dell: DRAC default logon – user/pass
- Linux: Release port 8080 after stopping Tomcat – Port 8080 in use by Java
Enjoy this article?
Comments (1)
Trackbacks (0) ( subscribe to comments on this post )
Leave a comment
No trackbacks yet.

2:08 AM on October 20th, 2011
Mozilla/5.0 (Windows NT 6.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
Bad Idea. Better put a liddle index.jsp to the root like this: