2012-01-10 51 views
1

在JBoss中,是否可以在两个上下文路径上部署Web应用程序? 我希望同样的战争实例可以在/以及/路径上使用,因此,像'/ abc'和'/ path/abc'这样的请求都会触发Web应用程序的相同实例。JBoss - 可能在两个不同的上下文路径上安装一场战争?

我想:

<module> 
    <web> 
     <web-uri>web-app.war</web-uri> 
     <context-root>/</context-root> 
    </web> 
</module> 

<module> 
    <web> 
     <web-uri>web-app.war</web-uri> 
     <context-root>/path</context-root> 
    </web> 
</module> 

,但看起来它只有在/路径部署。所有对'/ abc'的请求都是404。

有什么建议吗?

+1

那岂不是更容易使用Apache的前端Web服务器[ URL重写](http://httpd.apache.org/docs/2.0/misc/rewriteguide.html)? – 2012-01-10 18:49:53

回答

相关问题