Tomcat基本URL重定向
问题描述:
使用tomcat,如何获取 http://www.mydomain.com 的重定向请求 http://www.mydomain.com/somethingelse/index.jsp ?我甚至没有设法从 http://mydomain.com 获得index.html显示。
Using tomcat, how do I get a request for http://www.mydomain.com to redirect to http://www.mydomain.com/somethingelse/index.jsp ? i haven't even managed to get an index.html to display from http://mydomain.com.
答
命名您的web应用程序WARROOT.war或包含文件夹ROOT
Name your webapp WAR "ROOT.war" or containing folder "ROOT"