Standalone Jetty - configure multiple context paths for same context instance

十年热恋 提交于 2021-02-08 08:38:39

问题


Is it possible to configure jetty - vers. 9 (server config files or context xml files) so that the same context instance has the multiple context paths? (that point to the same loaded application, not different instances of the same .war).

In the docs it seams that only one context path can be set.

I need this because I want to set the default context path (root /) of my webapps without changing the context .xml files of my applications (and switch the / path from one app to another without restarting them) and also, to have them mapped to logical context paths that I can use internally (different purposes) without changing the links.

Thank you.

来源:https://stackoverflow.com/questions/33732783/standalone-jetty-configure-multiple-context-paths-for-same-context-instance

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!