JBoss - possible to mount a war on two different context paths?

前端 未结 1 567
滥情空心
滥情空心 2021-01-22 09:20

In JBoss, is it possible to deploy a web application on two context paths? I\'d like same war instance available on / as well as /path , so, requests like \'/abc\' and \'/path/a

1条回答
  •  孤城傲影
    2021-01-22 10:09

    Since JBoss AS uses Tomcat as it's web container you can try to configure multiple context paths in context.xml.

    See these links for further directions:

    Configure Tomcat application context root with context.xml

    http://community.jboss.org/wiki/Web-AppContextConfiguration

    http://docs.jboss.org/jbossweb/2.1.x/config/context.html

    Tomcat context.xml files, is there a hiearchy?

    0 讨论(0)
提交回复
热议问题