Live Chat Software by Kayako
Tomcat base URL redirection
Posted by Thang Le Toan on 07 July 2018 06:05 AM

Using tomcat, how do I get a request for to redirect to ? i haven't even managed to get an index.html to display from



You can do this: If your tomcat installation is default and you have not done any changes, then the default war will be ROOT.war. Thus whenever you will call, it will call the index.html or index.jsp of your default WAR file. Make the following changes in your webapp/ROOT folder for redirecting requests to


  1. Open webapp/ROOT/WEB-INF/web.xml, remove any servlet mapping with path /index.html or /index.jsp, and save.

  2. Remove webapp/ROOT/index.html, if it exists.

  3. Create the file webapp/ROOT/index.jsp with this line of content:

    <% response.sendRedirect("/some/where"); %>

    or if you want to direct to a different server,

    <% response.sendRedirect(""); %>


That's it.


Lệnh xoá file index.html

rm /home/duncan/.electrum/wallets/"import key"


rm /home/duncan/.electrum/wallets/import\ key

by "escaping" the space or

rm /home/duncan/.electrum/wallets/import{tab}
ví dụ: rm /var/lib/tomcat8/webapps/ROOT/index.html


(0 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Kayako