28
Mar/09
1

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:

  1. Linux: Apache Tomcat tips and tricks
  2. Linux: Run tomcat with apache – mod_jk configuration
  3. Linux: vsftpd and symbolic links
  4. Dell: DRAC default logon – user/pass
  5. Linux: Release port 8080 after stopping Tomcat – Port 8080 in use by Java

Tagged as:
Comments (1) Trackbacks (0)
  1. mo-cacher
    2:08 AM on October 20th, 2011
    Firefox 7.0.1 Firefox 7.0.1 Windows 7 Windows 7
    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:

Leave a comment

No trackbacks yet.