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.
答
将你的 webapp WAR 命名为ROOT.war"或包含文件夹ROOT"
Name your webapp WAR "ROOT.war" or containing folder "ROOT"