Tomcat 应用程序 http 到 https 重定向在 URL 中显示 ROOT

Tomcat app http to https redirect displays ROOT in URL

上下文路径在 tomcat 应用程序中设置为 ROOT,因为我想在没有任何路径的情况下访问 URL,例如:https://URL/. AWS Loadbalancer just redirects to the app servers. It works if I directly access https site. But if I access http site, the http to https redirect takes to https://URL/ROOT and displays "page not found", then I'd to remove the ROOT to access the page. If any path is set in the context i.e https://URL/PATH/,重定向工作正常,但前提是 ROOT,http重定向有这个问题。我想 context.xml、web.xml、server.xml 对我来说看起来不错。显然需要一些调整。请提供任何帮助。

http 侦听器规则具有 ROOT 而不是默认 {path} 因此发生重定向的原因。现在它已修复,我没有在重定向到 https 的 http URL 中看到 ROOT。