tomcat发布项目,在项目前加三个层级,如何实现http://ip:8080/cj1/cj2/cj3/项目名/index.jsp

本地项目http://ip:8080/项目名/index.jsp是可以正常的加载页面和登录,
但是要在项目名前加三个层级如何实现,效果如下http://ip:8080/cj1/cj2/cj3/项目名/index.jsp
之前配置了server.xml 中的context,可以实现登录页面显示,如下

<Context path="cj1/cj2/cj3/项目名" reloadable="false" docBase="C:\项目名">
                <Logger className="org.apache.catalina.logger.SystemOutLogger" verbosity="4" timestamp="true"/>
             </Context>

这样可以在http://ip:8080/cj1/cj2/cj3/项目名 进入登录界面,但是点击登录就会白屏如下图

img

感觉可以用网关来实现这个需求,比如 Nginx、ApiSix